Breaking the contant out to a variable
authorEd Page <eopage@byu.net>
Sat, 13 Mar 2010 00:25:45 +0000 (18:25 -0600)
committerEd Page <eopage@byu.net>
Sat, 13 Mar 2010 00:25:45 +0000 (18:25 -0600)
src/connection_manager.py

index c643f59..be1702a 100644 (file)
@@ -14,6 +14,8 @@ _moduleLogger = logging.getLogger(__name__)
 
 class TheOneRingConnectionManager(tp.ConnectionManager):
 
+       IDLE_TIMEOUT = 10
+
        def __init__(self, shutdown_func=None):
                tp.ConnectionManager.__init__(self, constants._telepathy_implementation_name_)
 
@@ -64,7 +66,7 @@ class TheOneRingConnectionManager(tp.ConnectionManager):
                Overrides tp.ConnectionManager
                """
                result = tp.ConnectionManager.disconnected(self, conn)
-               gobject_utils.timeout_add_seconds(10, self._shutdown)
+               gobject_utils.timeout_add_seconds(self.IDLE_TIMEOUT, self._shutdown)
 
        def quit(self):
                """