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:
parent
f2ce63bfe7
commit
96953744c9
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user