Stop waiting for snapshot updates when disconnected from host

This commit is contained in:
Max Brunsfeld 2022-06-30 15:07:40 -07:00
parent c5351a1276
commit b81135e10b

View file

@ -970,6 +970,7 @@ impl RemoteWorktree {
pub fn disconnected_from_host(&mut self) { pub fn disconnected_from_host(&mut self) {
self.updates_tx.take(); self.updates_tx.take();
self.snapshot_subscriptions.clear();
} }
pub fn update_from_remote(&mut self, update: proto::UpdateWorktree) { pub fn update_from_remote(&mut self, update: proto::UpdateWorktree) {