mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
plugins/edsm: Queue *all* events to worker
We need to trigger off ShutDown and Commander/LoadGame to empty pending, so need to *see* them in the worker.
This commit is contained in:
parent
53da204ffd
commit
ddc9286903
@ -488,11 +488,8 @@ def journal_entry( # noqa: C901, CCR001
|
||||
if state['BackpackJSON']:
|
||||
entry = state['BackpackJSON']
|
||||
|
||||
# Send interesting events to EDSM
|
||||
if (
|
||||
config.get_int('edsm_out') and not is_beta and not this.multicrew and credentials(cmdr) and
|
||||
entry['event'] not in this.discardedEvents
|
||||
):
|
||||
# Queue all events to send to EDSM. worker() will take care of dropping EDSM discarded events
|
||||
if config.get_int('edsm_out') and not is_beta and not this.multicrew and credentials(cmdr):
|
||||
# Introduce transient states into the event
|
||||
transient = {
|
||||
'_systemName': system,
|
||||
|
Loading…
x
Reference in New Issue
Block a user