mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 10:42:08 +00:00
Keep looking for a newer snapshot before broadcasting it
This commit is contained in:
parent
15b7e2ed32
commit
b96962005e
1 changed files with 5 additions and 1 deletions
|
@ -980,7 +980,11 @@ impl LocalWorktree {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while let Ok(snapshot) = snapshots_to_send_rx.recv().await {
|
while let Ok(mut snapshot) = snapshots_to_send_rx.recv().await {
|
||||||
|
while let Ok(newer_snapshot) = snapshots_to_send_rx.try_recv() {
|
||||||
|
snapshot = newer_snapshot;
|
||||||
|
}
|
||||||
|
|
||||||
let message =
|
let message =
|
||||||
snapshot.build_update(&prev_snapshot, project_id, worktree_id, true);
|
snapshot.build_update(&prev_snapshot, project_id, worktree_id, true);
|
||||||
rpc.request(message).await?;
|
rpc.request(message).await?;
|
||||||
|
|
Loading…
Reference in a new issue