This commit is contained in:
Max Brunsfeld
2021-08-19 13:07:28 -07:00
parent 86c819757d
commit 620b988e22
3 changed files with 66 additions and 25 deletions
+8 -6
View File
@@ -46,12 +46,14 @@ pub struct Subscription {
impl Drop for Subscription {
fn drop(&mut self) {
if let Some(client) = self.client.upgrade() {
client
.state
.write()
.model_handlers
.remove(&self.id)
.unwrap();
drop(
client
.state
.write()
.model_handlers
.remove(&self.id)
.unwrap(),
);
}
}
}