1
0
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:
Dan O'Reilly
2008-12-13 01:37:57 -05:00
parent 2e21e6abb0
commit 7794e9abb9
3 changed files with 2 additions and 2 deletions

0
wicd/autoconnect.py Normal file → Executable file
View File

View 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

View File

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