Change-Id: I4020c5d80514440899e0d16e05b9170e769bb478
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
Name: capi-network-connection
Summary: Network Connection library in TIZEN C API
-Version: 1.0.116
+Version: 1.0.117
Release: 1
Group: System/Network
License: Apache-2.0
{
int rv;
- CONN_LOCK;
-
rv = connection_create(connection);
- if (rv == CONNECTION_ERROR_NONE)
+ if (rv == CONNECTION_ERROR_NONE) {
+ CONN_LOCK;
_connection_set_cs_tid(tid, *connection);
+ CONN_UNLOCK;
+ }
- CONN_UNLOCK;
return rv;
}
int rv;
CONN_LOCK;
-
_connection_unset_cs_tid(tid, connection);
+ CONN_UNLOCK;
+
rv = connection_destroy(connection);
- CONN_UNLOCK;
return rv;
}