Fix exception when connection is refused

pull/8/head
Nicolas Jouanin 2015-08-29 21:19:38 +02:00
rodzic 6e69726da8
commit 15cea7e9fa
2 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -277,7 +277,6 @@ class MQTTClient:
raise ClientException("connection Failed: %s" % e)
if return_code is not CONNECTION_ACCEPTED:
yield from self._handler.stop()
self.session.transitions.disconnect()
self.logger.warn("Connection rejected with code '%s'" % return_code)
exc = ConnectException("Connection rejected by broker")

0
samples/passwd 100644
Wyświetl plik