summaryrefslogtreecommitdiff
path: root/resource
diff options
context:
space:
mode:
authorPyun DoHyun <dh79.pyun@samsung.com>2020-01-12 23:02:28 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2020-01-12 23:02:28 +0000
commit8f280228c5c30fbd16a4858116bc4ba680ee4c96 (patch)
tree2aa129a7bf10e55933d126e08db0f0823155d4b1 /resource
parent746884e6cd1462642dcd2569d60277910b2df038 (diff)
parente55210fb35d7f7c2130cb33f23620f52cdab39e2 (diff)
downloadiotivity-8f280228c5c30fbd16a4858116bc4ba680ee4c96.tar.gz
iotivity-8f280228c5c30fbd16a4858116bc4ba680ee4c96.tar.bz2
iotivity-8f280228c5c30fbd16a4858116bc4ba680ee4c96.zip
Merge "Deadlock after BLE connection error in caleserver_mcd.c" into tizen_5.5
Diffstat (limited to 'resource')
-rw-r--r--resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
index e9e3d0079..362ab6e9e 100644
--- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
+++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
@@ -1200,6 +1200,7 @@ uint16_t CALEServerGetMtuSize(const char* address)
{
OIC_LOG_V(ERROR, TAG,
"bt_gatt_server_get_device_mtu failed with return [%s]", CALEGetErrorMsg(ret));
+ oc_mutex_unlock(g_LEClientListMutex);
return CA_DEFAULT_BLE_MTU_SIZE;
}
#else
@@ -1237,6 +1238,7 @@ uint16_t CALEServerGetMtuSize(const char* address)
{
OIC_LOG_V(ERROR, TAG,
"bt_device_get_att_mtu failed with return [%s]", CALEGetErrorMsg(ret));
+ oc_mutex_unlock(g_LEClientListMutex);
return CA_DEFAULT_BLE_MTU_SIZE;
}
#endif // BLE_TIZEN_40