From: Marcel Holtmann Date: Thu, 16 Jul 2009 04:02:38 +0000 (+0200) Subject: Don't allow network connection attempts twice X-Git-Tag: 0.24~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8ecd3ecf5d3cee856d4a054a5f2887c8411485e;p=platform%2Fupstream%2Fconnman.git Don't allow network connection attempts twice --- diff --git a/src/network.c b/src/network.c index f5435a2..58dfea5 100644 --- a/src/network.c +++ b/src/network.c @@ -856,7 +856,7 @@ int __connman_network_connect(struct connman_network *network) DBG("network %p", network); - if (network->connected == TRUE) + if (network->connected == TRUE || network->connecting == TRUE) return -EALREADY; if (network->driver == NULL)