Otherwise open_channel won't be called again after a failure. --- src/sim-auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sim-auth.c b/src/sim-auth.c index 0e13b533..3c3f35e7 100644 --- a/src/sim-auth.c +++ b/src/sim-auth.c @@ -367,6 +367,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; } -- 2.25.1