if not self.session.is_logged_in():
_moduleLogger.info("Received connection change event when not logged in")
return
- try:
- self._connRef().disconnect()
- except Exception:
- _moduleLogger.exception("Error durring disconnect")
self._connRef().StatusChanged(
telepathy.CONNECTION_STATUS_DISCONNECTED,
telepathy.CONNECTION_STATUS_REASON_NETWORK_ERROR
)
+ try:
+ self._connRef().disconnect()
+ except Exception:
+ _moduleLogger.exception("Error durring disconnect")
self.__delayedDisconnectEventId = None
return False
"""
For org.freedesktop.telepathy.Connection
"""
- try:
- self.disconnect()
- except Exception:
- _moduleLogger.exception("Error durring disconnect")
self.StatusChanged(
telepathy.CONNECTION_STATUS_DISCONNECTED,
telepathy.CONNECTION_STATUS_REASON_REQUESTED
)
+ try:
+ self.disconnect()
+ except Exception:
+ _moduleLogger.exception("Error durring disconnect")
@gtk_toolbox.log_exception(_moduleLogger)
def RequestChannel(self, type, handleType, handleId, suppressHandler):