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:
committed by
Aleksander Morgado
parent
ad462f68bd
commit
2b0c7505fb
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user