diff --git a/plugins/edsm.py b/plugins/edsm.py index e3f5e902..b0850921 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -643,7 +643,7 @@ def worker() -> None: # noqa: CCR001 C901 # Cant be broken up currently pending.append(entry) - if should_send(pending, entry['event']): + if pending and should_send(pending, entry['event']): if 'edsm-cmdr-events' in trace_on: logger.trace(f'({cmdr=}, {entry["event"]=}): should_send() said True') pendings = [f"{p}\n" for p in pending]