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:
@@ -212,7 +212,7 @@ register_in_network_cancelled (GCancellable *cancellable,
|
|||||||
g_signal_handler_disconnect (ctx->client, ctx->serving_system_indication_id);
|
g_signal_handler_disconnect (ctx->client, ctx->serving_system_indication_id);
|
||||||
ctx->serving_system_indication_id = 0;
|
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);
|
g_object_unref (task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user