Skip to content

Commit

Permalink
Add retain back to remove also threads that belong to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Sep 21, 2024
1 parent d1b8c88 commit 5cfa698
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/debugger_ui/src/debugger_panel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ impl DebugPanel {
}
project::Event::DebugClientStopped(client_id) => {
cx.emit(DebugPanelEvent::ClientStopped(*client_id));

this.thread_states
.retain(|&(client_id_, _), _| client_id_ != *client_id);

cx.notify();
}
_ => {}
}
Expand Down

0 comments on commit 5cfa698

Please sign in to comment.