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.
This commit is contained in:
Madhav
2023-10-27 09:46:13 +00:00
committed by Aleksander Morgado
parent ad462f68bd
commit 2b0c7505fb
+1 -1
View File
@@ -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