mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 21:08:06 +01:00
Don't convert to milliseconds in misc.timeout_add if milli is True.
This commit is contained in:
@@ -663,5 +663,6 @@ def timeout_add(time, func, milli=False):
|
|||||||
if hasattr(gobject, "timeout_add_seconds") and not milli:
|
if hasattr(gobject, "timeout_add_seconds") and not milli:
|
||||||
return gobject.timeout_add_seconds(time, func)
|
return gobject.timeout_add_seconds(time, func)
|
||||||
else:
|
else:
|
||||||
return gobject.timeout_add(time * 1000, func)
|
if not milli: time = time * 1000
|
||||||
|
return gobject.timeout_add(time, func)
|
||||||
|
|
||||||
Reference in New Issue
Block a user