From: Daniel Wagner <[email protected]>
A Service should not be ignored when a Session wants a connection.
Since this a changes the meaming of AutoConnect of a Service
we use the SessionAutoConnectMode to protect the normal operation
mode.
---
src/service.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/service.c b/src/service.c
index 6e0b27f..9d03b1a 100644
--- a/src/service.c
+++ b/src/service.c
@@ -3451,6 +3451,13 @@ static bool is_ignore(struct connman_service *service)
if (!is_ipconfig_usable(service))
return true;
+ if (connman_setting_get_bool("SessionAutoConnectMode")) {
+ if (__connman_session_wants_connection(service))
+ return false;
+
+ return true;
+ }
+
return false;
}
--
1.8.4.474.g128a96c
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman