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

View File

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