From 0fe4913a3ce3b10e6c3e3f8391596800e4239983 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 23 Jul 2009 17:18:45 +0200 Subject: [PATCH] Fix missing auto-connect trigger on Ethernet device removal --- src/service.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/service.c b/src/service.c index ce13496..d515771 100644 --- a/src/service.c +++ b/src/service.c @@ -1533,12 +1533,18 @@ struct connman_service *__connman_service_create_from_device(struct connman_devi void __connman_service_remove_from_device(struct connman_device *device) { struct connman_service *service; + connman_bool_t favorite; service = __connman_service_lookup_from_device(device); if (service == NULL) return; + favorite = service->favorite; + __connman_service_put(service); + + if (favorite == TRUE) + __connman_service_auto_connect(); } /** -- 2.7.4