paho.mqtt.python icon indicating copy to clipboard operation
paho.mqtt.python copied to clipboard

Cannot use loop_forever after having used loop_start/loop_stop

Open tim-bitreactive opened this issue 6 years ago • 0 comments

Currently loop_stop leaves self._thread_terminate = True It should reset it to False after joining the worker thread:

        self._thread_terminate = True
        if threading.current_thread() != self._thread:
            self._thread.join()
            self._thread = None
            self._thread_terminate = False

tim-bitreactive avatar May 08 '19 12:05 tim-bitreactive