From: Daniel Wagner Date: Mon, 22 Aug 2011 11:16:04 +0000 (+0200) Subject: session: Don't reset session if serivce was not selected X-Git-Tag: 2.0_alpha~1220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df1611ff5f82a2b3e4b2b420410e87d3b455eb30;p=framework%2Fconnectivity%2Fconnman.git session: Don't reset session if serivce was not selected --- 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); } }