mirror of
https://github.com/gryf/wicd.git
synced 2026-01-09 07:14:13 +01:00
Fix some suspend/resume issues
This commit is contained in:
0
wicd/autoconnect.py
Normal file → Executable file
0
wicd/autoconnect.py
Normal file → Executable file
@@ -231,7 +231,7 @@ class ConnectionStatus(object):
|
|||||||
|
|
||||||
# Some checks to keep reconnect retries from going crazy.
|
# Some checks to keep reconnect retries from going crazy.
|
||||||
if self.reconnect_tries > 2 and \
|
if self.reconnect_tries > 2 and \
|
||||||
time.time() - self.last_reconnect_time < 300:
|
(time.time() - self.last_reconnect_time) < 300:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.reconnecting = True
|
self.reconnecting = True
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ class WicdDaemon(dbus.service.Object):
|
|||||||
if self.suspended:
|
if self.suspended:
|
||||||
self.Disconnect()
|
self.Disconnect()
|
||||||
else:
|
else:
|
||||||
self.forced_disconnect = False
|
self.SetForcedDisconnect(False)
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon')
|
@dbus.service.method('org.wicd.daemon')
|
||||||
def GetSuspend(self):
|
def GetSuspend(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user