diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-16 06:38:40 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-16 06:38:40 +0200 |
commit | 7823560a4f57172f3239745f5d87fc5e08767fd5 (patch) | |
tree | 9a054ac1e39f8c88039bacac2b9a719cc8ae3026 | |
parent | 13f6162d0727f58d4e692bdcd4e56143a4ea139e (diff) | |
download | connman-7823560a4f57172f3239745f5d87fc5e08767fd5.tar.gz connman-7823560a4f57172f3239745f5d87fc5e08767fd5.tar.bz2 connman-7823560a4f57172f3239745f5d87fc5e08767fd5.zip |
If network is attempting to connect already, return an error
-rw-r--r-- | src/network.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c index 42148a76..705feecd 100644 --- a/src/network.c +++ b/src/network.c @@ -857,7 +857,8 @@ int __connman_network_connect(struct connman_network *network) DBG("network %p", network); - if (network->connected == TRUE || network->connecting == TRUE) + if (network->connected == TRUE || network->connecting == TRUE || + network->associating == TRUE) return -EALREADY; if (network->driver == NULL) |