Switch network to disconnected on removal
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jan 2009 00:55:25 +0000 (01:55 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jan 2009 00:55:25 +0000 (01:55 +0100)
plugins/supplicant.c

index f910106..f9af81a 100644 (file)
@@ -1376,6 +1376,8 @@ int supplicant_disconnect(struct connman_network *network)
 
        remove_network(task);
 
+       connman_network_set_connected(task->network, FALSE);
+
        connman_network_unref(task->network);
 
        return 0;