self.session.logout()
self.session.close()
+ # In case one of the above items takes too long (which it should never
+ # do), we leave the starting of the shutdown-on-idle counter to the
+ # very end
+ self.manager.disconnect_completed(self)
+
_moduleLogger.info("Disconnected")
return result
- def disconnected(self, conn):
- """
- Overrides tp.ConnectionManager
- """
- result = tp.ConnectionManager.disconnected(self, conn)
+ def disconnect_completed(self):
gobject_utils.timeout_add_seconds(self.IDLE_TIMEOUT, self._shutdown)
def quit(self):