mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 17:31:36 +00:00
force reconnect after delay
This commit is contained in:
parent
a3611af26a
commit
b8f971fcd6
1 changed files with 7 additions and 0 deletions
|
@ -385,6 +385,13 @@ class Network(threading.Thread):
|
|||
print_error('network: retrying connections')
|
||||
self.disconnected_servers = set([])
|
||||
self.disconnected_time = time.time()
|
||||
|
||||
if not self.interface.is_connected:
|
||||
if time.time() - self.disconnected_time > DISCONNECTED_RETRY_INTERVAL:
|
||||
print_error("forcing reconnection")
|
||||
self.queue.put((self.interface, None))
|
||||
self.disconnected_time = time.time()
|
||||
|
||||
continue
|
||||
|
||||
if response is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue