summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2019-09-04 20:52:00 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2019-09-04 20:52:00 +0900
commit077b269454092b10a74574be422a4431fa148490 (patch)
tree227e1bc5989574c14b3e6ce4e06e311d84969f68
parent638c47033fb5d23c2ee62eae4f4f49fcb03c93f0 (diff)
downloadconnman-077b269454092b10a74574be422a4431fa148490.tar.gz
connman-077b269454092b10a74574be422a4431fa148490.tar.bz2
connman-077b269454092b10a74574be422a4431fa148490.zip
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>
-rw-r--r--src/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 6331ae41..56abcd13 100644
--- a/src/service.c
+++ b/src/service.c
@@ -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;