Skip to content

Commit

Permalink
[sim-auth] Remove watch if open_channel fails
Browse files Browse the repository at this point in the history
Otherwise open_channel won't be called again after a failure.
  • Loading branch information
monich committed Apr 25, 2021
1 parent 80224b2 commit deefa2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ofono/src/sim-auth.c
Expand Up @@ -368,6 +368,8 @@ static void get_session_cb(ofono_bool_t active, int session_id,
error:
__ofono_dbus_pending_reply(&sa->pending->msg,
__ofono_error_failed(sa->pending->msg));
__ofono_sim_remove_session_watch(sa->pending->session,
sa->pending->watch_id);
g_free(sa->pending);
sa->pending = NULL;
}
Expand Down

0 comments on commit deefa2c

Please sign in to comment.