From ddc9286903d8c1e032d20dd14d26eab8e5e0c6af Mon Sep 17 00:00:00 2001
From: Athanasius <github@miggy.org>
Date: Thu, 5 Aug 2021 15:20:03 +0100
Subject: [PATCH] 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.
---
 plugins/edsm.py | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/plugins/edsm.py b/plugins/edsm.py
index dfc651e5..b949670f 100644
--- a/plugins/edsm.py
+++ b/plugins/edsm.py
@@ -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,