Skip to content

Commit a261f4b

Browse files
committed
umqtt.simple: do not close the socket in ping()
1 parent 9f7b60b commit a261f4b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

umqtt.simple/umqtt/simple.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def disconnect(self):
5858

5959
def ping(self):
6060
self.sock.write(b"\xc0\0")
61-
self.sock.close()
6261

6362
def publish(self, topic, msg, retain=False, qos=0):
6463
pkt = bytearray(b"\x30\0\0\0")

0 commit comments

Comments
 (0)