From: Daniel Wagner <daniel.wag...@bmw-carit.de>

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

diff --git a/src/session.c b/src/session.c
index 3d26546..d23b1b1 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1626,7 +1626,8 @@ static void service_remove(struct connman_service 
*service)
 
                g_sequence_remove(iter);
 
-               info->entry = NULL;
+               if (info->entry != NULL && info->entry->service == service)
+                       info->entry = NULL;
                session_changed(session, CONNMAN_SESSION_TRIGGER_SERVICE);
        }
 }
-- 
1.7.6

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to