From cb4581c10a9da20fd08c48f57f051ba37b7e1e19 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 12 Mar 2010 18:25:45 -0600 Subject: [PATCH] Breaking the contant out to a variable --- src/connection_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/connection_manager.py b/src/connection_manager.py index c643f59..be1702a 100644 --- a/src/connection_manager.py +++ b/src/connection_manager.py @@ -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): """ -- 1.7.9.5