shared-qmi: network registration cancellation logic with asserts disabled

g_assert() calls may be disabled, and if so, the network registration
task would never get completed.
This commit is contained in:
Aleksander Morgado
2021-02-26 11:16:59 +01:00
parent f10e4af919
commit c7d366671f

View File

@@ -212,7 +212,7 @@ register_in_network_cancelled (GCancellable *cancellable,
g_signal_handler_disconnect (ctx->client, ctx->serving_system_indication_id);
ctx->serving_system_indication_id = 0;
g_assert (g_task_return_error_if_cancelled (task));
g_task_return_error_if_cancelled (task);
g_object_unref (task);
}