Skip to content

Commit

Permalink
session: Set state to disconnected when deactivating a session
Browse files Browse the repository at this point in the history
  • Loading branch information
pfl committed Mar 4, 2014
1 parent ee485f6 commit e5c6a34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/session.c
Expand Up @@ -1548,6 +1548,8 @@ static void session_deactivate(struct connman_session *session)

info->sessions = g_slist_remove(info->sessions, session);
session->service = NULL;

session->info->state = CONNMAN_SESSION_STATE_DISCONNECTED;
}

static void handle_service_state_online(struct connman_service *service,
Expand Down

0 comments on commit e5c6a34

Please sign in to comment.