mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-07 02:43:22 +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']:
|
if state['BackpackJSON']:
|
||||||
entry = state['BackpackJSON']
|
entry = state['BackpackJSON']
|
||||||
|
|
||||||
# Send interesting events to EDSM
|
# Queue all events to send to EDSM. worker() will take care of dropping EDSM discarded events
|
||||||
if (
|
if config.get_int('edsm_out') and not is_beta and not this.multicrew and credentials(cmdr):
|
||||||
config.get_int('edsm_out') and not is_beta and not this.multicrew and credentials(cmdr) and
|
|
||||||
entry['event'] not in this.discardedEvents
|
|
||||||
):
|
|
||||||
# Introduce transient states into the event
|
# Introduce transient states into the event
|
||||||
transient = {
|
transient = {
|
||||||
'_systemName': system,
|
'_systemName': system,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user