From 2b0c7505fb6843115f9d9f99b42fb438dc4da5c1 Mon Sep 17 00:00:00 2001 From: Madhav Date: Wed, 25 Oct 2023 06:31:37 +0000 Subject: 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. --- src/mm-port-probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2