From: Marcel Holtmann Date: Thu, 16 Jul 2009 04:38:18 +0000 (+0200) Subject: Return an error if a service connection attempt is already in progress X-Git-Tag: 0.24~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13f6162d0727f58d4e692bdcd4e56143a4ea139e;p=platform%2Fupstream%2Fconnman.git Return an error if a service connection attempt is already in progress --- diff --git a/src/service.c b/src/service.c index 38f553b..9918055 100644 --- a/src/service.c +++ b/src/service.c @@ -1071,6 +1071,9 @@ int __connman_service_connect(struct connman_service *service) if (service->state == CONNMAN_SERVICE_STATE_READY) return -EISCONN; + if (is_connecting(service) == TRUE) + return -EALREADY; + if (service->network != NULL) { unsigned int ssid_len;