aboutsummaryrefslogtreecommitdiff
path: root/src/app/popup.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/popup.rs')
-rw-r--r--src/app/popup.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/app/popup.rs b/src/app/popup.rs
index 3356ab14..f3d2e459 100644
--- a/src/app/popup.rs
+++ b/src/app/popup.rs
@@ -26,9 +26,7 @@ impl App {
.direct_attach_resize_locks
.remove(&popup.terminal_id);
self.state.terminals.remove(&popup.terminal_id);
- if let Some(runtime) = self.terminal_runtimes.remove(&popup.terminal_id) {
- runtime.shutdown();
- }
+ self.shutdown_terminal_runtime(popup.terminal_id);
self.state.mode = if self.state.active.is_some() {
Mode::Terminal
} else {