Skip to content

Commit

Permalink
bugfix:tuya_mqtt_destory is_inited verify.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1abin committed Jun 20, 2022
1 parent 2fdf0ee commit 7c7ecee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ int tuya_mqtt_loop(tuya_mqtt_context_t* context)

int tuya_mqtt_destory(tuya_mqtt_context_t* context)
{
if (context == NULL || context->is_inited != false) {
if (context == NULL || context->is_inited != true) {
return OPRT_COM_ERROR;
}

Expand Down

0 comments on commit 7c7ecee

Please sign in to comment.