mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Increase retry pause for shipyard data to 4s.
This commit is contained in:
parent
b00da39cf0
commit
a0fcf3ad66
@ -200,8 +200,8 @@ class AppWindow:
|
|||||||
elif not data.get('ship') or not data['ship'].get('modules') or not data['ship'].get('name','').strip():
|
elif not data.get('ship') or not data['ship'].get('modules') or not data['ship'].get('name','').strip():
|
||||||
self.status['text'] = "What are you flying?!" # Shouldn't happen
|
self.status['text'] = "What are you flying?!" # Shouldn't happen
|
||||||
elif (config.getint('output') & config.OUT_EDDN) and not data['lastStarport'].get('ships') and not retrying:
|
elif (config.getint('output') & config.OUT_EDDN) and not data['lastStarport'].get('ships') and not retrying:
|
||||||
# API is flakey about shipyard info - retry if missing (<1s is usually sufficient - 2.5s for margin).
|
# API is flakey about shipyard info - retry if missing (<1s is usually sufficient - 4s for margin).
|
||||||
self.w.after(2500, lambda:self.getandsend(retrying=True))
|
self.w.after(4000, lambda:self.getandsend(retrying=True))
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if __debug__ and retrying: print data['lastStarport'].get('ships') and 'Retry for shipyard - Success' or 'Retry for shipyard - Fail'
|
if __debug__ and retrying: print data['lastStarport'].get('ships') and 'Retry for shipyard - Success' or 'Retry for shipyard - Fail'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user