1
0
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:
Athanasius 2021-08-05 15:20:03 +01:00
parent 53da204ffd
commit ddc9286903
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -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,