Skip to content

Commit 32f0291

Browse files
committed
fix: prevent possibility of infinite loop in timeout logic of ProcessLoop
1 parent fe0a071 commit 32f0291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/core_mqtt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ MQTTStatus_t MQTT_ProcessLoop( MQTTContext_t * pContext,
21772177
elapsedTimeMs = calculateElapsedTime( pContext->getTime(),
21782178
entryTimeMs );
21792179

2180-
if( elapsedTimeMs > timeoutMs )
2180+
if( elapsedTimeMs >= timeoutMs )
21812181
{
21822182
break;
21832183
}

0 commit comments

Comments
 (0)