fix: quit channel on store

This commit is contained in:
Richard Ramos 2022-07-28 15:33:56 -04:00
parent 4041f5a67a
commit a549337a42
No known key found for this signature in database
GPG Key ID: BD36D48BC9FFC88C
1 changed files with 3 additions and 1 deletions

View File

@ -631,7 +631,9 @@ func (store *WakuStore) Stop() {
close(store.MsgC)
}
if store.msgProvider != nil {
store.quit <- struct{}{}
}
if store.h != nil {
store.h.RemoveStreamHandler(StoreID_v20beta4)