Skip to content

Commit 44c55e0

Browse files
committed
removed the condition
1 parent 468ef5b commit 44c55e0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

micropython/umqtt.simple/umqtt/simple.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +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 is not None:
66-
self.sock.settimeout(timeout)
65+
self.sock.settimeout(timeout)
6766
addr = socket.getaddrinfo(self.server, self.port)[0][-1]
6867
self.sock.connect(addr)
6968
if self.ssl:

0 commit comments

Comments
 (0)