fixed checking result for ServerStop in caleadapter.
authorjihwan.seo <jihwan.seo@samsung.com>
Wed, 23 Mar 2016 02:29:07 +0000 (11:29 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 23 Mar 2016 09:05:49 +0000 (09:05 +0000)
Change-Id: I55f68638bcd9f4ba7a045714412b56aaab368c89
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6189
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c

index 3615402..63705b8 100644 (file)
@@ -1660,7 +1660,7 @@ static CAResult_t CALEAdapterGattServerStop()
 
     CAResult_t result = CAStopLEGattServer();
     ca_mutex_lock(g_bleServerSendDataMutex);
-    if (CA_STATUS_OK != result)
+    if (CA_STATUS_OK == result)
     {
         result = CAQueueingThreadStop(g_bleServerSendQueueHandle);
     }