Skip to content

Commit a71aafe

Browse files
committed
Close process worker on quit
1 parent 83ce77c commit a71aafe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sqlit/domains/shell/ui/mixins/ui_navigation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ def action_toggle_fullscreen(self: UINavigationMixinHost) -> None:
166166

167167
def action_quit(self: UINavigationMixinHost) -> None:
168168
"""Quit the application."""
169+
close_worker = getattr(self, "_close_process_worker_client", None)
170+
if callable(close_worker):
171+
try:
172+
close_worker()
173+
except Exception:
174+
pass
169175
self.exit()
170176

171177
def action_show_help(self: UINavigationMixinHost) -> None:

0 commit comments

Comments
 (0)