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

Tomasz Bursztyka tomasz.bursztyka at linux.intel.com
Wed Feb 15 00:19:41 PST 2012


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

diff --git a/src/session.c b/src/session.c
index 56631a6..fbb53b8 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1855,6 +1855,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