aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-11-21 15:28:28 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-05-24 08:44:22 +0000
commit1ad55269720492a73fdf90214f733e18b2ba1dca (patch)
treeb1d0766f7db5e800287ac313eeb433814c7064dc /src
parent0cfe498354de02d8b74634f16019b87484bf7fcf (diff)
bearer-mbim: plug user cancellable to all MBIM operations
Diffstat (limited to 'src')
-rw-r--r--src/mm-bearer-mbim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c
index a16d63e7..3a56e07e 100644
--- a/src/mm-bearer-mbim.c
+++ b/src/mm-bearer-mbim.c
@@ -1147,7 +1147,7 @@ connect_context_step (GTask *task)
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
message,
30,
- NULL,
+ g_task_get_cancellable (task),
(GAsyncReadyCallback)packet_service_set_ready,
task);
return;
@@ -1203,7 +1203,7 @@ connect_context_step (GTask *task)
mbim_device_command (device,
message,
10,
- NULL,
+ g_task_get_cancellable (task),
(GAsyncReadyCallback)check_disconnected_ready,
task);
return;
@@ -1215,7 +1215,7 @@ connect_context_step (GTask *task)
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
message,
MM_BASE_BEARER_DEFAULT_DISCONNECTION_TIMEOUT,
- NULL,
+ g_task_get_cancellable (task),
(GAsyncReadyCallback)ensure_disconnected_ready,
task);
return;
@@ -1257,7 +1257,7 @@ connect_context_step (GTask *task)
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
message,
MM_BASE_BEARER_DEFAULT_CONNECTION_TIMEOUT,
- NULL,
+ g_task_get_cancellable (task),
(GAsyncReadyCallback)connect_set_ready,
task);
return;
@@ -1285,7 +1285,7 @@ connect_context_step (GTask *task)
mbim_device_command (mm_port_mbim_peek_device (ctx->mbim),
message,
60,
- NULL,
+ g_task_get_cancellable (task),
(GAsyncReadyCallback)ip_configuration_query_ready,
task);
return;