Skip to content

Commit

Permalink
fix: delete entry from subscriptions list during unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyaprem committed Oct 15, 2024
1 parent 76275f6 commit caf98f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions waku/v2/api/filter/filter_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ func (mgr *FilterManager) UnsubscribeFilter(filterID string) {
}
if len(af.sub.ContentFilter.ContentTopics) == 0 {
af.cancel()
delete(mgr.filterSubscriptions, filterConfig.ID)
} else {
go af.sub.Unsubscribe(filterConfig.contentFilter)
}
Expand Down

0 comments on commit caf98f4

Please sign in to comment.