Merge "Fixed issue of connection_create()" into tizen accepted/tizen/common/20150506.091354 accepted/tizen/mobile/20150506.125648 accepted/tizen/tv/20150506.095514 accepted/tizen/wearable/20150506.095643 submit/tizen/20150506.015437
authortaesub.kim <taesub.kim@samsung.com>
Wed, 6 May 2015 01:52:40 +0000 (18:52 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 6 May 2015 01:52:40 +0000 (18:52 -0700)
src/connection.c

index 92c4ff6..55cbda8 100644 (file)
@@ -257,10 +257,12 @@ EXPORT_API int connection_create(connection_h* connection)
        rv = _connection_libnet_init();
        if (rv == NET_ERR_ACCESS_DENIED) {
                CONNECTION_LOG(CONNECTION_ERROR, "Access denied");
+               CONNECTION_MUTEX_UNLOCK;
                return CONNECTION_ERROR_PERMISSION_DENIED;
        }
        else if (rv != NET_ERR_NONE) {
                CONNECTION_LOG(CONNECTION_ERROR, "Failed to create connection[%d]", rv);
+               CONNECTION_MUTEX_UNLOCK;
                return CONNECTION_ERROR_OPERATION_FAILED;
        }