From: taesub kim Date: Thu, 19 Oct 2017 22:29:33 +0000 (+0900) Subject: Checking for client connection before doing dbus connection close X-Git-Tag: submit/tizen_4.0/20171122.064346~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cad396cd8d603acbbffd6fee80e94cdbfeb974c2;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Checking for client connection before doing dbus connection close Change-Id: Ic48eb9e794e4f9db3d9f57dd2a054cbaca243cb4 Signed-off-by: Taesub Kim --- diff --git a/src/network_internal.c b/src/network_internal.c index f0e7bbe..b44898f 100755 --- a/src/network_internal.c +++ b/src/network_internal.c @@ -566,7 +566,8 @@ void _net_dbus_pending_call_unref(void) gdbus_conn.handle_libnetwork != NULL) { WIFI_LOG(WIFI_ERROR, "A handle of libnetwork is not NULL"); - gdbus_conn.connection = NULL; + if (NetworkInfo.ref_count < 1) + gdbus_conn.connection = NULL; } }