From 352b14f2422eeafd259edd7c748faf5f4cdf373b Mon Sep 17 00:00:00 2001 From: "min7.choi" Date: Wed, 22 Jun 2016 17:43:43 +0900 Subject: [PATCH] Fix SVACE issue : WGID 67706 Change-Id: I703e6241d70a2c6278c9c49828e341f2efcb8968 Signed-off-by: min7.choi --- provider/download-provider-network.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/provider/download-provider-network.c b/provider/download-provider-network.c index 5fafe2c..a8b5c69 100755 --- a/provider/download-provider-network.c +++ b/provider/download-provider-network.c @@ -137,7 +137,12 @@ static int __dp_get_network_connection_status(connection_h connection, connectio TRACE_INFO("DISCONNECTED"); network_type = DP_NETWORK_OFF; } - g_network_status = network_type; + pthread_mutex_lock(&g_dp_network_mutex); + + g_network_status = network_type; + + pthread_mutex_unlock(&g_dp_network_mutex); + return network_type; } -- 2.7.4