Reset client_id after disable gdbus call
authorCheoleun Moon <chleun.moon@samsung.com>
Thu, 19 Mar 2020 04:45:33 +0000 (13:45 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Thu, 19 Mar 2020 04:45:33 +0000 (13:45 +0900)
src/wifi-aware-private.c

index d3ca0d1..b5ab9ef 100644 (file)
@@ -517,8 +517,9 @@ int _wifi_aware_is_enabled()
 
 int _wifi_aware_disable_request()
 {
+       int ret = wifi_aware_gdbus_disable(g_wifi_aware->client_id);
        g_wifi_aware->client_id = 0;
-       return wifi_aware_gdbus_disable(g_wifi_aware->client_id);
+       return ret;
 }
 
 int _wifi_aware_session_handle_create(wifi_aware_session_type_e session_type,