when internet connection is back, only connect accounts that were

connected before connection broke
This commit is contained in:
Yann Leboulanger 2017-12-11 21:13:53 +01:00
parent f8ddefb6da
commit a39d68d4ae
1 changed files with 1 additions and 1 deletions

View File

@ -2622,7 +2622,7 @@ class Interface:
self.network_state = connected self.network_state = connected
if connected: if connected:
for connection in app.connections.values(): for connection in app.connections.values():
if connection.connected <= 0: if connection.connected <= 0 and connection.time_to_reconnect:
log.info('Connect %s', connection.name) log.info('Connect %s', connection.name)
connection.reconnect() connection.reconnect()
else: else: