From: Jukka Rissanen Date: Tue, 1 Nov 2011 09:09:55 +0000 (+0200) Subject: network: Disconnect network properly X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~969 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8593360523d785b8a862f467d1f1ab77669bd04d;p=profile%2Fivi%2Fconnman.git network: Disconnect network properly When network is removed (for example when ethernet cable is disconnected), then it needs to be disconnected also. The disconnect was not done at all because of the reference counting fixes in dhcp code. --- diff --git a/src/network.c b/src/network.c index b58409f..5883786 100644 --- a/src/network.c +++ b/src/network.c @@ -178,6 +178,8 @@ static void network_remove(struct connman_network *network) if (network->driver == NULL) return; + connman_network_set_connected(network, FALSE); + switch (network->type) { case CONNMAN_NETWORK_TYPE_UNKNOWN: case CONNMAN_NETWORK_TYPE_VENDOR: