Closing down channels on loss of connection
[theonering] / src / connection.py
index 2db7df6..3e90f30 100644 (file)
@@ -126,6 +126,7 @@ class TheOneRingConnection(
                _moduleLogger.info("Disconnecting")
                try:
                        self.session.logout()
+                       self._channelManager.close()
                        _moduleLogger.info("Disconnected")
                except Exception:
                        _moduleLogger.exception("Disconnecting Failed")