Skip to content
Snippets Groups Projects
Commit ed57d7de authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky
Browse files

Added my patch for python-paho-mqtt, which prevents long connection delays

A one-line change for paho/mqtt/client.py from python-paho-mqtt.
parent 507e6726
No related branches found
No related tags found
No related merge requests found
--- client.py.sav 2018-12-14 18:30:04.836523913 +0100
+++ client.py 2018-12-14 19:23:13.759468147 +0100
@@ -983,7 +983,7 @@
# sockpairR is used to break out of select() before the timeout, on a
# call to publish() etc.
- rlist = [self._sock, self._sockpairR]
+ rlist = [self._sock, self._sockpairR] if self._sock else [self._sockpairR]
try:
socklist = select.select(rlist, wlist, [], timeout)
except TypeError:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment