tqt update checker: use longer timeout - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit f545d2b716d3e0a3d184473d03e16a35cbf2520e
DIR parent 3835157f419d0f0139ed05a589c6a10b3f1a7e99
HTML Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 4 Feb 2020 18:34:24 +0100
qt update checker: use longer timeout
closes #5899
Diffstat:
M electrum/gui/qt/update_checker.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
DIR diff --git a/electrum/gui/qt/update_checker.py b/electrum/gui/qt/update_checker.py
t@@ -103,7 +103,9 @@ class UpdateCheckThread(QThread, Logger):
self.main_window = main_window
async def get_update_info(self):
- async with make_aiohttp_session(proxy=self.main_window.network.proxy) as session:
+ # note: Use long timeout here as it is not critical that we get a response fast,
+ # and it's bad not to get an update notification just because we did not wait enough.
+ async with make_aiohttp_session(proxy=self.main_window.network.proxy, timeout=120) as session:
async with session.get(UpdateCheck.url) as result:
signed_version_dict = await result.json(content_type=None)
# example signed_version_dict: