From: Patrik Flykt Date: Wed, 17 Oct 2012 10:34:20 +0000 (+0300) Subject: service: Don't trigger autoconnect when neither service is preferred X-Git-Tag: 1.9~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5259176625fc30e12410d18f535802d8542b0ad;p=platform%2Fupstream%2Fconnman.git service: Don't trigger autoconnect when neither service is preferred Don't trigger a new autoconnect when neither the default nor the new service is preferred. Rely on the fact that normal autoconnect selection mechanism has done the work for us already. --- diff --git a/src/service.c b/src/service.c index 3417e892..5dee4cdb 100644 --- a/src/service.c +++ b/src/service.c @@ -4941,7 +4941,6 @@ static int service_update_preferred_order(struct connman_service *default_servic return 0; } } - return -EAGAIN; } return -EALREADY; @@ -4977,8 +4976,6 @@ static int service_indicate_state(struct connman_service *service) service, new_state); if (result == -EALREADY) return result; - if (result == -EAGAIN) - __connman_service_auto_connect(); } if (old_state == CONNMAN_SERVICE_STATE_ONLINE)