summaryrefslogtreecommitdiff
path: root/src/app/worktrees.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/worktrees.rs')
-rw-r--r--src/app/worktrees.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/app/worktrees.rs b/src/app/worktrees.rs
index 23e17b4d..0087c8fe 100644
--- a/src/app/worktrees.rs
+++ b/src/app/worktrees.rs
@@ -997,14 +997,12 @@ impl App {
ws_idx: usize,
) {
for terminal_id in self.state.terminal_ids_for_workspace(ws_idx) {
- if let Some(runtime) = self.terminal_runtimes.remove(&terminal_id) {
- tracing::debug!(
- workspace_index = ws_idx,
- terminal_id = %terminal_id,
- "shutting down terminal runtime before worktree removal"
- );
- runtime.shutdown();
- }
+ tracing::debug!(
+ workspace_index = ws_idx,
+ terminal_id = %terminal_id,
+ "shutting down terminal runtime before worktree removal"
+ );
+ self.shutdown_terminal_runtime(terminal_id);
}
}
}