eclipse-paho / eclipse-paho/paho.mqtt.python

Cannot use loop_forever after having used loop_start/loop_stop

Open
#383 0 comments 0 reactions 0 assignees View on GitHub
Type: Enhancement
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

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
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.