Fix Subscription panics when unsubscribing from exhausted stream #157
This commit is contained in:
parent
1c1c50cef0
commit
52996501ad
|
@ -22,7 +22,9 @@ impl SubscriptionStreams {
|
|||
}
|
||||
|
||||
pub fn remove(&mut self, id: usize) {
|
||||
self.streams.remove(id);
|
||||
if self.streams.contains(id) {
|
||||
self.streams.remove(id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user