Skip to content

Commit

Permalink
Merge pull request #258 from deerfelyk/develop
Browse files Browse the repository at this point in the history
Fix keepalive timer
  • Loading branch information
CIPop authored Feb 24, 2024
2 parents 65d321d + f81df8c commit de1c690
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 de1c690

Please sign in to comment.