From fa453a17a5197ebec793056bb23895a887fb093a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 9 Oct 2019 10:49:13 +0200 Subject: [PATCH] iface-modem-voice: avoid using MM_CORE_ERROR_CANCELLED --- src/mm-iface-modem-voice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c index 1c7af9c0..bcd8dc1a 100644 --- a/src/mm-iface-modem-voice.c +++ b/src/mm-iface-modem-voice.c @@ -2165,7 +2165,7 @@ in_call_cleanup_ready (MMIfaceModemVoice *self, if (!in_call_cleanup_finish (self, res, &error)) { /* ignore cancelled operations */ - if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) && !g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_CANCELLED)) + if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) mm_warn ("Cannot cleanup in-call modem state: %s", error->message); g_clear_error (&error); } else { @@ -2189,7 +2189,7 @@ in_call_setup_ready (MMIfaceModemVoice *self, if (!in_call_setup_finish (self, res, &ctx->audio_port, &ctx->audio_format, &error)) { /* ignore cancelled operations */ - if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) && !g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_CANCELLED)) + if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) mm_warn ("Cannot setup in-call modem state: %s", error->message); g_clear_error (&error); } else {