From: Roger Light Date: Tue, 7 May 2013 08:52:23 +0000 (+0100) Subject: Fix possible thread locking situation. X-Git-Tag: v0.9~81 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d254a71340f6270d19316f1d29f80ceca33f196c;p=packages%2Fp%2Fpaho-mqtt.git Fix possible thread locking situation. --- diff --git a/lib/python/mosquitto.py b/lib/python/mosquitto.py index c00ac08..86f6ce9 100755 --- a/lib/python/mosquitto.py +++ b/lib/python/mosquitto.py @@ -1511,7 +1511,7 @@ class Mosquitto: self._current_out_packet_mutex.release() self._out_packet_mutex.release() - if not self._in_callback: + if not self._in_callback and self._thread == None: return self.loop_write() else: return MOSQ_ERR_SUCCESS