X-Git-Url: http://git.maemo.org/git/?p=theonering;a=blobdiff_plain;f=src%2Ftheonering.py;h=1bc74364ebbdee4e8560aee46d473d148482e2cc;hp=a3c30d9583e45c5e0f64442576c23692a118c177;hb=7ef94ca86f8728837ba08aef711118c284c3199c;hpb=ee83449d48d4e08fe4c1d81d5ffeeba8df0d04c7 diff --git a/src/theonering.py b/src/theonering.py index a3c30d9..1bc7436 100755 --- a/src/theonering.py +++ b/src/theonering.py @@ -34,7 +34,7 @@ import constants import connection_manager -IDLE_TIMEOUT = 5000 +IDLE_TIMEOUT = 5 def run_theonering(persist): @@ -60,7 +60,7 @@ def run_theonering(persist): if persist: shutdown_callback = None else: - gobject.timeout_add(IDLE_TIMEOUT, timeout_cb) + gobject_utils.timeout_add_seconds(IDLE_TIMEOUT, timeout_cb) shutdown_callback = quit signal.signal(signal.SIGTERM, quit)