From 9eac385cf0c0cdcdf6a8764133e3569a68e665d2 Mon Sep 17 00:00:00 2001
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Fri, 3 May 2019 19:40:16 +0200
Subject: [PATCH 3/4] bearer-qmi: do not pass a cancellable to start_network()
If we cancel start_network(), we'll lose the network handle. That means
we won't ever be able to stop the network again, and reconnect the modem
again.
---
src/mm-bearer-qmi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mm-bearer-qmi.c b/src/mm-bearer-qmi.c
index f8c6544..10664a8 100644
--- a/src/mm-bearer-qmi.c
+++ b/src/mm-bearer-qmi.c
@@ -1171,7 +1171,7 @@ connect_context_step (ConnectContext *ctx)
qmi_client_wds_start_network (ctx->client_ipv4,
input,
45,
- ctx->cancellable,
+ NULL, /* Disallow cancellation */
(GAsyncReadyCallback)start_network_ready,
ctx);
qmi_message_wds_start_network_input_unref (input);
@@ -1274,7 +1274,7 @@ connect_context_step (ConnectContext *ctx)
qmi_client_wds_start_network (ctx->client_ipv6,
input,
45,
- ctx->cancellable,
+ NULL, /* Disallow cancellation */
(GAsyncReadyCallback)start_network_ready,
ctx);
qmi_message_wds_start_network_input_unref (input);
--
1.8.3.1