huawei,bearer: avoid using MM_CORE_ERROR_CANCELLED

This commit is contained in:
Aleksander Morgado
2019-10-09 10:48:36 +02:00
parent 6de9c8cb29
commit def5c76cf9

View File

@@ -333,9 +333,7 @@ connect_3gpp_context_step (GTask *task)
NULL, /* Do not care the AT response */
NULL);
g_task_return_new_error (task,
MM_CORE_ERROR,
MM_CORE_ERROR_CANCELLED,
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_CANCELLED,
"Huawei connection operation has been cancelled");
g_object_unref (task);
return;