Skip to content

Commit a3c3a88

Browse files
committed
Send out pingreq, do not disconnect, if downloading, or pingreq overdue.
1 parent f40a37c commit a3c3a88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/paho/mqtt/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3279,7 +3279,7 @@ def _check_keepalive(self) -> None:
32793279
last_msg_in = self._last_msg_in
32803280

32813281
if self._sock is not None and (now - last_msg_out >= self._keepalive or now - last_msg_in >= self._keepalive):
3282-
if self._state == _ConnectionState.MQTT_CS_CONNECTED and self._ping_t == 0:
3282+
if self._state == _ConnectionState.MQTT_CS_CONNECTED:
32833283
try:
32843284
self._send_pingreq()
32853285
except Exception:

0 commit comments

Comments
 (0)