Fixing a bug with deny lists
[theonering] / src / connection_manager.py
index 90252b6..92a12ae 100644 (file)
@@ -6,6 +6,7 @@ import telepathy
 import constants
 import tp
 import gtk_toolbox
+import util.go_utils as gobject_utils
 import connection
 
 
@@ -13,7 +14,6 @@ _moduleLogger = logging.getLogger("connection_manager")
 
 
 class TheOneRingConnectionManager(tp.ConnectionManager):
-       # @bug Crashing Maemo 4.1's RTComm on occasion
 
        def __init__(self, shutdown_func=None):
                tp.ConnectionManager.__init__(self, constants._telepathy_implementation_name_)
@@ -65,7 +65,7 @@ class TheOneRingConnectionManager(tp.ConnectionManager):
                Overrides tp.ConnectionManager
                """
                result = tp.ConnectionManager.disconnected(self, conn)
-               gobject.timeout_add(5000, self._shutdown)
+               gobject_utils.timeout_add_seconds(5, self._shutdown)
 
        def quit(self):
                """