summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-17 10:34:20 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-18 10:26:37 (GMT)
commitb5259176625fc30e12410d18f535802d8542b0ad (patch)
tree0921f9694c58e0d2daa979b1d63239da64a57a80
parent569e0e85d96229a28bb08b8f900fd7d1ce3c7789 (diff)
downloadconnman-b5259176625fc30e12410d18f535802d8542b0ad.zip
connman-b5259176625fc30e12410d18f535802d8542b0ad.tar.gz
connman-b5259176625fc30e12410d18f535802d8542b0ad.tar.bz2
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.
-rw-r--r--src/service.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index 3417e89..5dee4cd 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)