Fix the erroneous check (#1210)

This is to address this issue: https://github.com/FreeRTOS/FreeRTOS/issues/1206
This commit is contained in:
xuelix
2024-04-17 13:55:05 -07:00
committed by GitHub
parent 469b8ad175
commit 2023ac6404
2 changed files with 2 additions and 2 deletions

View File

@ -801,7 +801,7 @@ BaseType_t xEstablishMqttSession( MQTTContext_t * pxMqttContext,
}
}
if( xReturnStatus == pdFAIL )
if( xReturnStatus != pdFAIL )
{
/* Keep a flag for indicating if MQTT session is established. This
* flag will mark that an MQTT DISCONNECT has to be sent at the end

View File

@ -794,7 +794,7 @@ BaseType_t xEstablishMqttSession( MQTTContext_t * pxMqttContext,
}
}
if( xReturnStatus == pdFAIL )
if( xReturnStatus != pdFAIL )
{
/* Keep a flag for indicating if MQTT session is established. This
* flag will mark that an MQTT DISCONNECT has to be sent at the end