mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 01:22:19 +03:00
EDMarketConnector: Bail in AppWindow.journal_entry if monitor.thread is None
monitor.thread should only be none when there's a <<JournalEvent>> to process if we're in shutdown, in which case we do *not* want to be processing journal events.
This commit is contained in:
parent
8a0a82fe43
commit
be18f36e54
@ -743,6 +743,10 @@ class AppWindow(object):
|
||||
'FlightCon': _('Helm'), # Multicrew role
|
||||
}.get(role, role)
|
||||
|
||||
if monitor.thread is None:
|
||||
logger.debug('monitor.thread is None, assuming shutdown and returning')
|
||||
return
|
||||
|
||||
while True:
|
||||
entry = monitor.get_entry()
|
||||
if not entry:
|
||||
|
Loading…
x
Reference in New Issue
Block a user