Drop project's buffers when closing a remote project

This commit is contained in:
Max Brunsfeld 2023-01-09 14:49:36 -08:00
parent 5a4fa4b11e
commit 576a9bb92c

View file

@ -597,6 +597,7 @@ async fn apply_client_operation(
.unwrap(); .unwrap();
cx.update(|_| { cx.update(|_| {
client.remote_projects_mut().remove(ix); client.remote_projects_mut().remove(ix);
client.buffers().retain(|project, _| project != project);
drop(project); drop(project);
}); });
} }