Skip to content

Commit

Permalink
Fix keepalive timer
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Freed <[email protected]>
  • Loading branch information
deerfelyk committed Feb 21, 2024
1 parent 65d321d commit f81df8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MQTTClient-C/src/MQTTClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ int keepalive(MQTTClient* c)
if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTTCLIENT_SUCCESS)
{
c->ping_outstanding = 1;
TimerCountdownMS(&c->pingresp_timer, c->keepAliveInterval);
TimerCountdown(&c->pingresp_timer, c->keepAliveInterval);
}
}
}
Expand Down

0 comments on commit f81df8c

Please sign in to comment.