mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 08:47:45 -04:00
Fix the erroneous check (#1210)
This is to address this issue: https://github.com/FreeRTOS/FreeRTOS/issues/1206
This commit is contained in:
parent
469b8ad175
commit
2023ac6404
2 changed files with 2 additions and 2 deletions
|
@ -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
|
/* 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
|
* flag will mark that an MQTT DISCONNECT has to be sent at the end
|
||||||
|
|
|
@ -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
|
/* 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
|
* flag will mark that an MQTT DISCONNECT has to be sent at the end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue