Skip to content

Commit

Permalink
Update source/core_mqtt.c
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Bartell <paul.bartell@gmail.com>
  • Loading branch information
onkwon and paulbartell authored Dec 12, 2022
1 parent 34f8b8c commit 52c4b06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/core_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,10 @@ static MQTTStatus_t receiveSingleIteration( MQTTContext_t * pContext,
&( pContext->networkBuffer.pBuffer[ totalMQTTPacketLength ] ),
pContext->index );

pContext->lastPacketRxTime = pContext->getTime();
if( status == MQTTSuccess )
{
pContext->lastPacketRxTime = pContext->getTime();
}
}

if( status == MQTTNoDataAvailable )
Expand Down

0 comments on commit 52c4b06

Please sign in to comment.