From: HyeKyoung Hwang Date: Fri, 21 Oct 2016 02:12:28 +0000 (+0900) Subject: Fix the mutext issue X-Git-Tag: submit/tizen_common/20161024.083503^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5201c8ed200b50b95cb100f4a8fb0e4673ffc12;p=platform%2Fframework%2Fweb%2Fbrowser-provider.git Fix the mutext issue Change-Id: I2b2fd88921b02a5c634f0f39d6e9ead1ac4726fa Signed-off-by: HyeKyoung Hwang --- diff --git a/provider/browser-provider-tabs.c b/provider/browser-provider-tabs.c index dc7dd03..746a4ca 100755 --- a/provider/browser-provider-tabs.c +++ b/provider/browser-provider-tabs.c @@ -467,11 +467,9 @@ static bp_error_defs __bp_tab_activate(int sock, int id) TRACE_ERROR("[ERROR][SQL][%d] DIRTY", activated_id); } } - pthread_mutex_unlock(&g_db_mutex); } // if inactivated current activated one. try to activate new one activate = 1; - pthread_mutex_lock(&g_db_mutex); if (bp_db_set_column(g_db_handle, id, BP_DB_TABLE_TABS, BP_DB_TABS_COL_ACTIVATED, BP_DB_COL_TYPE_INT, &activate, &errorcode) < 0) {