base-modem-at: avoid using MM_CORE_ERROR_CANCELLED

This commit is contained in:
Aleksander Morgado
2019-10-11 07:27:59 +00:00
parent def5c76cf9
commit c0e1bde03e
+2 -6
View File
@@ -168,9 +168,7 @@ at_sequence_parse_response (MMPortSerialAt *port,
/* Cancelled? */
if (g_cancellable_is_cancelled (ctx->cancellable)) {
g_simple_async_result_set_error (ctx->simple,
MM_CORE_ERROR,
MM_CORE_ERROR_CANCELLED,
g_simple_async_result_set_error (ctx->simple, G_IO_ERROR, G_IO_ERROR_CANCELLED,
"AT sequence was cancelled");
if (error)
g_error_free (error);
@@ -483,9 +481,7 @@ at_command_ready (MMPortSerialAt *port,
/* Cancelled? */
if (g_cancellable_is_cancelled (ctx->cancellable)) {
g_simple_async_result_set_error (ctx->result,
MM_CORE_ERROR,
MM_CORE_ERROR_CANCELLED,
g_simple_async_result_set_error (ctx->result, G_IO_ERROR, G_IO_ERROR_CANCELLED,
"AT command was cancelled");
if (error)
g_error_free (error);