From b5259176625fc30e12410d18f535802d8542b0ad Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Wed, 17 Oct 2012 13:34:20 +0300 Subject: 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. --- src/service.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') 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) -- cgit v1.2.3