1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-05 18:01:03 +03:00

[1346] Only Shutdown When Present

This commit is contained in:
David Sangrey 2025-04-26 11:04:04 -04:00
parent eae0417797
commit e9c4ca6b9d
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

View File

@ -1869,10 +1869,9 @@ class AppWindow:
target=self.systray.shutdown, target=self.systray.shutdown,
daemon=True, daemon=True,
) )
shutdown_thread.start()
except AttributeError: # No SysTray except AttributeError: # No SysTray
shutdown_thread = threading.Thread(daemon=True) logger.info("No Systray, No Thread to Shutdown")
shutdown_thread.start()
config.set_shutdown() # Signal we're in shutdown now. config.set_shutdown() # Signal we're in shutdown now.