Revert "Avoid adding elements to QueueingThread if it's already stopped." 04/205204/1 accepted/tizen/unified/20190507.111910 submit/tizen/20190506.232846
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 30 Apr 2019 07:02:19 +0000 (16:02 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 30 Apr 2019 07:38:04 +0000 (16:38 +0900)
This reverts commit c04ac05a42d644464490feecf905cfd4aaf64b76.

Change-Id: I2c81a9641a58522671d8807465f1ec5a2f91dd51

resource/csdk/connectivity/src/caqueueingthread.c

index ba7b478..0afeed9 100644 (file)
@@ -237,16 +237,6 @@ CAResult_t CAQueueingThreadAddData(CAQueueingThread_t *thread, void *data, uint3
     // mutex lock
     oc_mutex_lock(thread->threadMutex);
 
-    // thread stop
-    if (thread->isStop)
-    {
-        // mutex unlock
-        oc_mutex_unlock(thread->threadMutex);
-
-        OICFree(message);
-        return CA_STATUS_FAILED;
-    }
-
     // add thread data into list
     u_queue_add_element(thread->dataQueue, message);