Re: [PATCH 1/2] sim-auth: Remove watch if open_channel fails

2021-04-30 Thread Denis Kenzior

Hi Slava,

On 4/26/21 3:17 AM, Slava Monich wrote:

Otherwise open_channel won't be called again after a failure.
---
  src/sim-auth.c | 2 ++
  1 file changed, 2 insertions(+)



Both applied, thanks.

Regards,
-Denis
___
ofono mailing list -- ofono@ofono.org
To unsubscribe send an email to ofono-le...@ofono.org


[PATCH 1/2] sim-auth: Remove watch if open_channel fails

2021-04-26 Thread Slava Monich
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(>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
___
ofono mailing list -- ofono@ofono.org
To unsubscribe send an email to ofono-le...@ofono.org