1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

monitor: Close journal loghandle if signalled to close down.

This commit is contained in:
Athanasius 2020-10-16 15:54:13 +01:00
parent f2ce63bfe7
commit 96953744c9

View File

@ -384,6 +384,9 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
# Check whether we're still supposed to be running
if threading.current_thread() != self.thread:
logger.info("We're not meant to be running, exiting...")
if loghandle:
loghandle.close()
return # Terminate
if self.game_was_running: