From 8593360523d785b8a862f467d1f1ab77669bd04d Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Tue, 1 Nov 2011 11:09:55 +0200 Subject: [PATCH] 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. --- src/network.c | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.7.4