1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 15:57:14 +03:00

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 2022-11-23 13:56:01 +00:00
parent 524c0425fb
commit b7769821be
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

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)