mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-11-24 03:16:57 +03:00
monitor: Avoid Tk event_generate() calls during shutdown.
This commit is contained in:
1 parent
6cdc1dc20c
commit
571f9665b3
1 file changed
+5
-2
+5
-2
@@ -337,7 +337,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
self.event_queue.append(line)
|
||||
|
||||
if self.event_queue:
|
||||
self.root.event_generate('<<JournalEvent>>', when="tail")
|
||||
if not config.shutting_down():
|
||||
self.root.event_generate('<<JournalEvent>>', when="tail")
|
||||
|
||||
log_pos = loghandle.tell()
|
||||
|
||||
@@ -355,7 +356,9 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
'{{ "timestamp":"{}", "event":"ShutDown" }}'.format(strftime('%Y-%m-%dT%H:%M:%SZ', gmtime()))
|
||||
)
|
||||
|
||||
self.root.event_generate('<<JournalEvent>>', when="tail")
|
||||
if not config.shutting_down():
|
||||
self.root.event_generate('<<JournalEvent>>', when="tail")
|
||||
|
||||
self.game_was_running = False
|
||||
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user