mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-05-17 23:15:58 +08:00
Fix the erroneous check (#1210)
This is to address this issue: https://github.com/FreeRTOS/FreeRTOS/issues/1206
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user