Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mux-server race condition. #5981

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions wezterm-mux-server-impl/src/sessionhandler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ impl PerPane {
changed = true;
}

let old_seqno = self.seqno;
self.seqno = pane.get_current_seqno();
let mut all_dirty_lines = pane.get_changed_since(
0..dims.physical_top + dims.viewport_rows as StableRowIndex,
self.seqno,
old_seqno,
);
if !all_dirty_lines.is_empty() {
changed = true;
Expand Down Expand Up @@ -124,7 +126,6 @@ impl PerPane {
self.working_dir = working_dir.clone();
self.dimensions = dims;
self.mouse_grabbed = mouse_grabbed;
self.seqno = pane.get_current_seqno();

let bonus_lines = bonus_lines.into();
Some(GetPaneRenderChangesResponse {
Expand Down
Loading