From: Jaehyun Kim Date: Wed, 4 Sep 2019 11:52:00 +0000 (+0900) Subject: Fixed invalid state transitions X-Git-Tag: accepted/tizen/unified/20190909.010911^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=077b269454092b10a74574be422a4431fa148490;p=platform%2Fupstream%2Fconnman.git Fixed invalid state transitions 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 --- diff --git a/src/service.c b/src/service.c index 6331ae4..56abcd1 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;