1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-31 07:39:44 +03:00

protocol: Avoid Tk event_generate() calls during shutdown

This commit is contained in:
Athanasius 2021-01-11 16:43:53 +00:00
parent 4bddc4c0cb
commit 92d5657e21

View File

@ -32,7 +32,9 @@ class GenericProtocolHandler(object):
def event(self, url):
self.lastpayload = url
self.master.event_generate('<<CompanionAuthEvent>>', when="tail")
if not config.shutting_down():
self.master.event_generate('<<CompanionAuthEvent>>', when="tail")
if sys.platform == 'darwin' and getattr(sys, 'frozen', False):