Reset service_state value in initialization time 70/199070/1 submit/tizen/20190201.112357 submit/tizen/20190211.023331 submit/tizen/20190213.070039
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 1 Feb 2019 10:23:04 +0000 (19:23 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 1 Feb 2019 10:33:07 +0000 (19:33 +0900)
The service_state value remains as the value at the time of deinitializing when reinitializing after deinitialization.
For this reason, it may be different from the actual value in some cases.

Change-Id: Ia91af535a76ef7d15f270e8e0c485e44a9a76cd4
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/network_signal.c

index 70107a0..ffd5593 100755 (executable)
@@ -1680,6 +1680,7 @@ int _net_init_service_state(void)
        __NETWORK_FUNC_ENTER__;
 
        net_err_e Error = NET_ERR_NONE;
+       service_state = NET_STATE_TYPE_UNKNOWN;
 
        Error = __net_dbus_get_technology_states(&service_state);
        if (Error != NET_ERR_NONE) {