diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index 1ec6b819..5c616186 100644 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -1803,7 +1803,7 @@ def loop_start(self): self._sockpairR, self._sockpairW = _socketpair_compat() self._thread_terminate = False - self._thread = threading.Thread(target=self._thread_main) + self._thread = threading.Thread(target=self._thread_main, name=f"paho-mqtt-client-{self._client_id.decode()}") self._thread.daemon = True self._thread.start()