]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commitdiff
Don't hang in loop_forever() after disconnect() when using SSL.
authorRoger A. Light <roger@atchoo.org>
Wed, 4 Jun 2014 20:56:44 +0000 (21:56 +0100)
committerRoger A. Light <roger@atchoo.org>
Wed, 4 Jun 2014 20:56:44 +0000 (21:56 +0100)
Bug: 436615
Change-Id: Ia1219f72e090fc8ed0cb87863c56c9ee8e713b5d

src/paho/mqtt/client.py

index 7547797b4f004b61c41fd44539c80b280dfce477..32fc2cb47bc6f080ca03b4a5a08bcda08f116d6c 100755 (executable)
@@ -1483,7 +1483,7 @@ class Client(object):
                         if self._ssl:
                             self._ssl.close()
                             self._ssl = None
-                        elif self._sock:
+                        if self._sock:
                             self._sock.close()
                             self._sock = None
                         return MQTT_ERR_SUCCESS