[PATCH 04/11] session: do not notify an ipconfig change if the session is not connected

Tomasz Bursztyka tomasz.bursztyka at linux.intel.com
Fri Feb 3 02:38:59 PST 2012


---
 src/session.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/session.c b/src/session.c
index 8a3faf5..f1186a0 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1842,6 +1842,9 @@ static void ipconfig_changed(struct connman_service *service,
 		session = value;
 		info = session->info;
 
+		if (info->state == CONNMAN_SESSION_STATE_DISCONNECTED)
+			continue;
+
 		if (info->entry != NULL && info->entry->service == service) {
 			if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
 				ipconfig_ipv4_changed(session);
-- 
1.7.8.4




More information about the connman mailing list