mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-05 09:53:33 +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
|
# Check whether we're still supposed to be running
|
||||||
if threading.current_thread() != self.thread:
|
if threading.current_thread() != self.thread:
|
||||||
logger.info("We're not meant to be running, exiting...")
|
logger.info("We're not meant to be running, exiting...")
|
||||||
|
if loghandle:
|
||||||
|
loghandle.close()
|
||||||
|
|
||||||
return # Terminate
|
return # Terminate
|
||||||
|
|
||||||
if self.game_was_running:
|
if self.game_was_running:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user