From bda708622093660eef6ec6289093346d0ed13e85 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 5 Apr 2023 16:53:36 -0700 Subject: [PATCH] Clear guest's shared buffers if they rejoin project after leaving while host was disconnected --- crates/project/src/project.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/project/src/project.rs b/crates/project/src/project.rs index 3e5a45007560a4f5bdb1a89bc4c8e99783c7e72b..88a187982cc45c807ad3b3b02bcdec6633a81003 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -4847,6 +4847,7 @@ impl Project { let collaborator = Collaborator::from_proto(collaborator)?; this.update(&mut cx, |this, cx| { + this.shared_buffers.remove(&collaborator.peer_id); this.collaborators .insert(collaborator.peer_id, collaborator); cx.notify();