Consolidating cm idle timeout
authorEd Page <eopage@byu.net>
Tue, 20 Apr 2010 02:32:27 +0000 (21:32 -0500)
committerEd Page <eopage@byu.net>
Tue, 20 Apr 2010 02:32:27 +0000 (21:32 -0500)
src/theonering.py

index bc8a6cf..4ac5700 100755 (executable)
@@ -34,9 +34,6 @@ import constants
 import connection_manager
 
 
-IDLE_TIMEOUT = 10
-
-
 def run_theonering(persist):
        linux_utils.set_process_name(constants.__app_name__)
 
@@ -60,7 +57,10 @@ def run_theonering(persist):
        if persist:
                shutdown_callback = None
        else:
-               gobject_utils.timeout_add_seconds(IDLE_TIMEOUT, timeout_cb)
+               gobject_utils.timeout_add_seconds(
+                       connection_manager.TheOneRingConnectionManager.IDLE_TIMEOUT,
+                       timeout_cb
+               )
                shutdown_callback = on_quit
 
        signal.signal(signal.SIGTERM, lambda: on_quit)