disable automatically disconnecting when Automatically reconnect is False
This commit is contained in:
1 parent
c1ff548273
commit
73a08c5c55
1 file changed
+1
-1
+1
-1
@@ -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