1
0
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:
Adam Blackburn
2009-06-16 07:44:27 +08:00
parent c1ff548273
commit 73a08c5c55

View File

@@ -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