Browse Source

reconnect to main server after timeout

283
ThomasV 10 years ago
parent
commit
90590f70ab
  1. 11
      lib/network.py

11
lib/network.py

@ -412,8 +412,17 @@ class Network(threading.Thread):
if i == self.interface:
self.set_status('disconnected')
if not self.interface.is_connected and self.config.get('auto_cycle'):
if not self.interface.is_connected:
if self.config.get('auto_cycle'):
self.switch_to_random_interface()
else:
if self.default_server not in self.disconnected_servers:
print_error("restarting main interface")
if self.default_server in self.interfaces.keys():
self.switch_to_interface(self.interfaces[self.default_server])
else:
self.interface = self.start_interface(self.default_server)
print_error("Network: Stopping interfaces")
for i in self.interfaces.values():

Loading…
Cancel
Save