Check if thread is running before passing it to joinThread()

This commit is contained in:
Rokosun 2023-12-26 18:48:04 +00:00
parent f2ec92a22d
commit 2eb10c5b71
1 changed files with 2 additions and 1 deletions

View File

@ -166,4 +166,5 @@ method view(app: AppState): Widget =
brew(appID, gui(App()), icons=[iconsDir], stylesheets=[newStylesheet(gtkCSS)])
joinThread(thread)
if running(thread):
joinThread(thread)