Skip to content

Commit 468ef5b

Browse files
author
Your Name
committed
using is not to include timeout=0w!
1 parent fb69f00 commit 468ef5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/umqtt.simple/umqtt/simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def set_last_will(self, topic, msg, retain=False, qos=0):
6262

6363
def connect(self, clean_session=True, timeout=None):
6464
self.sock = socket.socket()
65-
if timeout:
65+
if timeout is not None:
6666
self.sock.settimeout(timeout)
6767
addr = socket.getaddrinfo(self.server, self.port)[0][-1]
6868
self.sock.connect(addr)

0 commit comments

Comments
 (0)