From: Patrik Flykt <[email protected]>

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(-)

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)
-- 
1.7.10.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to