Skip to content

Commit de1c690

Browse files
authored
Merge pull request #258 from deerfelyk/develop
Fix keepalive timer
2 parents 65d321d + f81df8c commit de1c690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MQTTClient-C/src/MQTTClient.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int keepalive(MQTTClient* c)
241241
if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTTCLIENT_SUCCESS)
242242
{
243243
c->ping_outstanding = 1;
244-
TimerCountdownMS(&c->pingresp_timer, c->keepAliveInterval);
244+
TimerCountdown(&c->pingresp_timer, c->keepAliveInterval);
245245
}
246246
}
247247
}

0 commit comments

Comments
 (0)