Skip to content

Commit b9fe254

Browse files
committed
Fix thread handle is never NULL once assigned
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent e29f079 commit b9fe254

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mqttclient/mqttclient.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -956,6 +956,7 @@ static void mqtt_yield_thread(void *arg)
956956
thread_to_be_destoried = c->mqtt_thread;
957957
if(NULL != thread_to_be_destoried)
958958
{
959+
c->mqtt_thread = NULL;
959960
platform_thread_destroy(thread_to_be_destoried);
960961
thread_to_be_destoried = NULL;
961962
}

0 commit comments

Comments
 (0)