iface-modem-voice: avoid using MM_CORE_ERROR_CANCELLED

This commit is contained in:
Aleksander Morgado
2019-10-11 07:27:59 +00:00
parent cff3be23c0
commit fa453a17a5
+2 -2
View File
@@ -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 {