diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-12-21 14:43:08 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-12-21 14:48:37 +0100 |
commit | 5230ee4241042ca201075178d42fca8d89152753 (patch) | |
tree | 044ede0d0b115bded5fd31aa06f8f3092b0f4aab | |
parent | 6c1c3405c68bc86c873f0bae6595c3917358f530 (diff) |
bearer-qmi: fix logic if error setting up WDS event report indications
If we get an error when setting up the WDS event report indications,
make sure we run connect_context_step() after having set the next step
as CONNECT_STEP_LAST.
(cherry picked from commit 850107acbfe3878326b695d4ea31f02d2321aa22)
-rw-r--r-- | src/mm-bearer-qmi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c index d3e692ea..81510304 100644 --- a/src/mm-bearer-qmi.c +++ b/src/mm-bearer-qmi.c @@ -896,12 +896,12 @@ connect_enable_indications_ipv4_ready (QmiClientWds *client, ctx->event_report_ipv4_indication_id = connect_enable_indications_ready (client, res, ctx->self, &ctx->error_ipv4); - if (!ctx->event_report_ipv4_indication_id) { + + if (!ctx->event_report_ipv4_indication_id) ctx->step = CONNECT_STEP_LAST; - return; - } + else + ctx->step++; - ctx->step++; connect_context_step (ctx); } @@ -914,12 +914,12 @@ connect_enable_indications_ipv6_ready (QmiClientWds *client, ctx->event_report_ipv6_indication_id = connect_enable_indications_ready (client, res, ctx->self, &ctx->error_ipv6); - if (!ctx->event_report_ipv6_indication_id) { + + if (!ctx->event_report_ipv6_indication_id) ctx->step = CONNECT_STEP_LAST; - return; - } + else + ctx->step++; - ctx->step++; connect_context_step (ctx); } |