eddn: Send immediately if docked

This has the "are we delaying sending?" check, but without the short-circuit
for "we are actually docked right now".
This commit is contained in:
Athanasius committed 2022-11-23 13:56:01 +00:00
1 parent 524c0425fb
commit b7769821be
1 file changed
+1 -1
+1 -1
View File
@@ -941,7 +941,7 @@ class EDDN:
msg['header'] = self.standard_header()
msg_id = self.sender.add_message(cmdr, msg)
if not (config.get_int('output') & config.OUT_EDDN_DELAY):
if this.docked or not (config.get_int('output') & config.OUT_EDDN_DELAY):
# No delay in sending configured, so attempt immediately
self.sender.send_message_by_id(msg_id)