mirror of
https://github.com/gryf/wicd.git
synced 2025-12-31 19:12:28 +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.
|
||||
if self.reconnect_tries > 2 and \
|
||||
time.time() - self.last_reconnect_time < 300:
|
||||
(time.time() - self.last_reconnect_time) < 300:
|
||||
return
|
||||
|
||||
self.reconnecting = True
|
||||
|
||||
@@ -294,7 +294,7 @@ class WicdDaemon(dbus.service.Object):
|
||||
if self.suspended:
|
||||
self.Disconnect()
|
||||
else:
|
||||
self.forced_disconnect = False
|
||||
self.SetForcedDisconnect(False)
|
||||
|
||||
@dbus.service.method('org.wicd.daemon')
|
||||
def GetSuspend(self):
|
||||
|
||||
Reference in New Issue
Block a user