From a0fcf3ad668ce7c167ad5943ce8b72911f5e085c Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Wed, 8 Jul 2015 12:31:57 +0100 Subject: [PATCH] Increase retry pause for shipyard data to 4s. --- EDMarketConnector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index ff6dd460..5626c2f7 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -200,8 +200,8 @@ class AppWindow: 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 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). - self.w.after(2500, lambda:self.getandsend(retrying=True)) + # API is flakey about shipyard info - retry if missing (<1s is usually sufficient - 4s for margin). + self.w.after(4000, lambda:self.getandsend(retrying=True)) return else: if __debug__ and retrying: print data['lastStarport'].get('ships') and 'Retry for shipyard - Success' or 'Retry for shipyard - Fail'