Skip to content

Commit d1b5774

Browse files
authored
Merge pull request #617 from mosauter/master
Set client_id as thread name
2 parents 933699a + e2fc0c8 commit d1b5774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/paho/mqtt/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,7 @@ def loop_start(self):
18031803

18041804
self._sockpairR, self._sockpairW = _socketpair_compat()
18051805
self._thread_terminate = False
1806-
self._thread = threading.Thread(target=self._thread_main)
1806+
self._thread = threading.Thread(target=self._thread_main, name=f"paho-mqtt-client-{self._client_id.decode()}")
18071807
self._thread.daemon = True
18081808
self._thread.start()
18091809

0 commit comments

Comments
 (0)