aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMadhav <madhavadas@google.com>2023-10-25 06:31:37 +0000
committerAleksander Morgado <aleksander@aleksander.es>2023-10-27 09:46:13 +0000
commit2b0c7505fb6843115f9d9f99b42fb438dc4da5c1 (patch)
tree20b8f22b4f107de83b3f5e3a933b588728b6a708 /src
parentad462f68bd33a5a6fd9d4011dd6fee0e1aaacd43 (diff)
mm-port-probe: Invoke the mm_port_qmi_open function with a GCancellable object
Ensure that the cdc-wdm port probing task is canceled if the modem drops off the bus before the task completes. This prevents the task from preventing other port probing tasks from starting.
Diffstat (limited to 'src')
-rw-r--r--src/mm-port-probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index 26e6a4ee..489c296f 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -520,7 +520,7 @@ wdm_probe_qmi (MMPortProbe *self)
mm_port_qmi_open (ctx->port_qmi,
FALSE,
- NULL,
+ g_task_get_cancellable (self->priv->task),
(GAsyncReadyCallback) port_qmi_open_ready,
self);
#else