base-modem-at: avoid using MM_CORE_ERROR_CANCELLED
This commit is contained in:
@@ -168,9 +168,7 @@ at_sequence_parse_response (MMPortSerialAt *port,
|
|||||||
|
|
||||||
/* Cancelled? */
|
/* Cancelled? */
|
||||||
if (g_cancellable_is_cancelled (ctx->cancellable)) {
|
if (g_cancellable_is_cancelled (ctx->cancellable)) {
|
||||||
g_simple_async_result_set_error (ctx->simple,
|
g_simple_async_result_set_error (ctx->simple, G_IO_ERROR, G_IO_ERROR_CANCELLED,
|
||||||
MM_CORE_ERROR,
|
|
||||||
MM_CORE_ERROR_CANCELLED,
|
|
||||||
"AT sequence was cancelled");
|
"AT sequence was cancelled");
|
||||||
if (error)
|
if (error)
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
@@ -483,9 +481,7 @@ at_command_ready (MMPortSerialAt *port,
|
|||||||
|
|
||||||
/* Cancelled? */
|
/* Cancelled? */
|
||||||
if (g_cancellable_is_cancelled (ctx->cancellable)) {
|
if (g_cancellable_is_cancelled (ctx->cancellable)) {
|
||||||
g_simple_async_result_set_error (ctx->result,
|
g_simple_async_result_set_error (ctx->result, G_IO_ERROR, G_IO_ERROR_CANCELLED,
|
||||||
MM_CORE_ERROR,
|
|
||||||
MM_CORE_ERROR_CANCELLED,
|
|
||||||
"AT command was cancelled");
|
"AT command was cancelled");
|
||||||
if (error)
|
if (error)
|
||||||
g_error_free (error);
|
g_error_free (error);
|
||||||
|
Reference in New Issue
Block a user