Don't convert to milliseconds in misc.timeout_add if milli is True.
This commit is contained in:
1 parent
30b59d1a59
commit
7ee121c15e
1 file changed
+2
-1
+2
-1
@@ -663,5 +663,6 @@ def timeout_add(time, func, milli=False):
|
||||
if hasattr(gobject, "timeout_add_seconds") and not milli:
|
||||
return gobject.timeout_add_seconds(time, func)
|
||||
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