1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-06 02:11:04 +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,
) )
except AttributeError: # No SysTray
shutdown_thread = threading.Thread(daemon=True)
shutdown_thread.start() shutdown_thread.start()
except AttributeError: # No SysTray
logger.info("No Systray, No Thread to Shutdown")
config.set_shutdown() # Signal we're in shutdown now. config.set_shutdown() # Signal we're in shutdown now.