force reconnect after delay
This commit is contained in:
@@ -385,6 +385,13 @@ class Network(threading.Thread):
|
|||||||
print_error('network: retrying connections')
|
print_error('network: retrying connections')
|
||||||
self.disconnected_servers = set([])
|
self.disconnected_servers = set([])
|
||||||
self.disconnected_time = time.time()
|
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
|
continue
|
||||||
|
|
||||||
if response is not None:
|
if response is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user