1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-24 12:40:52 +03:00

monitor: Don't synthesize StartUp if current event is ShutDown

This commit is contained in:
Athanasius 2023-01-13 14:04:01 +00:00
parent bb258aeb0a
commit 85ed69463c
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -1977,7 +1977,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
if entry['event'] == 'Location':
logger.trace_if('journal.locations', '"Location" event')
if not self.live and entry['event'] not in (None, 'Fileheader'):
if not self.live and entry['event'] not in (None, 'Fileheader', 'ShutDown'):
# Game not running locally, but Journal has been updated
self.live = True
if self.station: