Fixed invalid state transitions 60/213360/1 accepted/tizen/unified/20190909.010911 submit/tizen/20190906.055938
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 4 Sep 2019 11:52:00 +0000 (20:52 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 4 Sep 2019 11:52:00 +0000 (20:52 +0900)
Fixed the case where the ConnMan is changed to Idle state without going through Disconnect state in Connected state.
* Disconnect state indicates that it is going to terminate the current connection and will return to the Idle state.

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

index 6331ae4..56abcd1 100644 (file)
@@ -7955,6 +7955,10 @@ int __connman_service_ipconfig_indicate_state(struct connman_service *service,
                        connman_warn("ipconfig state %d ipconfig method %d",
                                new_state, method);
 
+#if defined TIZEN_EXT
+               if (old_state != CONNMAN_SERVICE_STATE_READY &&
+                               old_state != CONNMAN_SERVICE_STATE_ONLINE)
+#endif
                new_state = CONNMAN_SERVICE_STATE_IDLE;
                break;