Skip to content

Commit

Permalink
Merge pull request #617 from mosauter/master
Browse files Browse the repository at this point in the history
Set client_id as thread name
  • Loading branch information
PierreF authored Dec 24, 2023
2 parents 933699a + e2fc0c8 commit d1b5774
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/paho/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d1b5774

Please sign in to comment.