From 585c23e9f634e99c0cf1376c5dc1b8b00512175a Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 6 Jan 2023 11:48:34 -0700 Subject: [PATCH] Match guest's reported buffers on host when synchronizing after reconnect If the host thinks a guest has a buffer that they don't have, the host won't send it to them when they attempt to open it the next time. This can happen if the guest disconnected before they received the host's response to an initial open buffer request. Co-Authored-By: Nathan Sobo --- 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 0f750e3255..0dff99e77e 100644 --- a/crates/project/src/project.rs +++ b/crates/project/src/project.rs @@ -5181,6 +5181,7 @@ impl Project { return; }; + this.shared_buffers.entry(guest_id).or_default().clear(); for buffer in envelope.payload.buffers { let buffer_id = buffer.id; let remote_version = language::proto::deserialize_version(buffer.version);