Skip to content

Commit

Permalink
delete from subs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitvly committed Mar 11, 2024
1 parent 1436294 commit 682410e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions waku/v2/api/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func (apiSub *Sub) checkAliveness() map[string]uint {

if err != nil {
subDetails.Close()
apiSub.Lock()
defer apiSub.Unlock()
delete(apiSub.subs, subDetails.ID)
} else {
ch <- subDetails.ContentFilter.PubsubTopic
}
Expand Down

0 comments on commit 682410e

Please sign in to comment.