mirror of
https://github.com/gryf/wicd.git
synced 2025-12-29 09:52:31 +01:00
disable automatically disconnecting when Automatically reconnect is False
This commit is contained in:
@@ -185,7 +185,7 @@ class ConnectionStatus(object):
|
||||
# try to reconnect.
|
||||
self.connection_lost_counter += 1
|
||||
print self.connection_lost_counter
|
||||
if self.connection_lost_counter >= 4:
|
||||
if self.connection_lost_counter >= 4 and daemon.GetAutoReconnect():
|
||||
wireless.DisconnectWireless()
|
||||
self.connection_lost_counter = 0
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user