projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
84da830
)
Fixing a bug with cancelling timeouts
author
Ed Page
<eopage@byu.net>
Sat, 13 Feb 2010 01:32:49 +0000
(19:32 -0600)
committer
Ed Page
<eopage@byu.net>
Sat, 13 Feb 2010 01:32:49 +0000
(19:32 -0600)
src/util/go_utils.py
patch
|
blob
|
history
diff --git
a/src/util/go_utils.py
b/src/util/go_utils.py
index
e8fde8b
..
33ddfb5
100644
(file)
--- a/
src/util/go_utils.py
+++ b/
src/util/go_utils.py
@@
-104,7
+104,7
@@
class Timeout(object):
if timeoutInSeconds == 0:
self.__timeoutId = gobject.idle_add(self._on_once)
else:
if timeoutInSeconds == 0:
self.__timeoutId = gobject.idle_add(self._on_once)
else:
- timeout_add_seconds(timeoutInSeconds, self._on_once)
+ self.__timeoutId = timeout_add_seconds(timeoutInSeconds, self._on_once)
def is_running(self):
return self.__timeoutId is not None
def is_running(self):
return self.__timeoutId is not None