Skip to content

Commit 51b0550

Browse files
committed
fix ping_timeout
1 parent 5378f8f commit 51b0550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def ping(self) -> list[int]:
602602
rc = self._wait_for_msg()
603603
if rc:
604604
rcs.append(rc)
605-
if ticks_diff(ticks_ms(), stamp):
605+
if ticks_diff(ticks_ms(), stamp) > ping_timeout * 1000:
606606
raise MMQTTException("PINGRESP not returned from broker.")
607607
return rcs
608608

0 commit comments

Comments
 (0)