From f104dc56fcefa431b59835e477a3c14f7d2c35c0 Mon Sep 17 00:00:00 2001 From: Pekka Pessi Date: Mon, 30 Aug 2010 18:21:12 +0300 Subject: [PATCH] network: don't connect if already removed --- src/network.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network.c b/src/network.c index 68769e4..01f7a2f 100644 --- a/src/network.c +++ b/src/network.c @@ -1042,6 +1042,9 @@ int __connman_network_connect(struct connman_network *network) if (network->driver->connect == NULL) return -ENOSYS; + if (network->device == NULL) + return -ENODEV; + __connman_device_disconnect(network->device); network->connecting = TRUE; -- 2.7.4