From d254a71340f6270d19316f1d29f80ceca33f196c Mon Sep 17 00:00:00 2001 From: Roger Light Date: Tue, 7 May 2013 09:52:23 +0100 Subject: [PATCH] Fix possible thread locking situation. --- lib/python/mosquitto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5