[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 8 06:13:02 PST 2012


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

diff --git a/src/session.c b/src/session.c
index c36c541..04cc972 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1856,6 +1856,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