mirror of
https://github.com/gryf/wicd.git
synced 2026-01-07 06:14:16 +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.
|
# try to reconnect.
|
||||||
self.connection_lost_counter += 1
|
self.connection_lost_counter += 1
|
||||||
print self.connection_lost_counter
|
print self.connection_lost_counter
|
||||||
if self.connection_lost_counter >= 4:
|
if self.connection_lost_counter >= 4 and daemon.GetAutoReconnect():
|
||||||
wireless.DisconnectWireless()
|
wireless.DisconnectWireless()
|
||||||
self.connection_lost_counter = 0
|
self.connection_lost_counter = 0
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user