Revert "Avoid adding elements to QueueingThread if it's already stopped."
[platform/upstream/iotivity.git] / resource / csdk / connectivity / src / caqueueingthread.c
index 0eb1f3c..0afeed9 100644 (file)
@@ -366,6 +366,7 @@ CAResult_t CAQueueingThreadDestroy(CAQueueingThread_t *thread)
     oc_mutex_free(thread->threadMutex);
     thread->threadMutex = NULL;
     oc_cond_free(thread->threadCond);
+    thread->threadCond = NULL;
 
     u_queue_delete(thread->dataQueue);
     thread->dataQueue = NULL;