mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2026-02-06 02:23:29 +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