Blame SOURCES/0001-base-bearer-fix-check-for-cancellation.patch

6a41de
From 811e7a71fe574884e454807fb59393acc182555c Mon Sep 17 00:00:00 2001
6a41de
From: Lubomir Rintel <lkundrak@v3.sk>
6a41de
Date: Fri, 3 May 2019 18:45:22 +0200
6a41de
Subject: [PATCH 1/4] base-bearer: fix check for cancellation
6a41de
6a41de
If we cancel connect_cancellable, the connect task will return a
6a41de
G_IO_ERROR_CANCELLED. We may need to do some cleanup (like, disconnect
6a41de
if the connection went far enough to actually start the network
6a41de
connection), thus it's important we check for cancellation correctly.
6a41de
---
6a41de
 src/mm-base-bearer.c | 5 ++---
6a41de
 1 file changed, 2 insertions(+), 3 deletions(-)
6a41de
6a41de
diff --git a/src/mm-base-bearer.c b/src/mm-base-bearer.c
6a41de
index 854fbc2..e1dd989 100644
6a41de
--- a/src/mm-base-bearer.c
6a41de
+++ b/src/mm-base-bearer.c
6a41de
@@ -576,9 +576,8 @@ connect_ready (MMBaseBearer *self,
6a41de
         mm_dbg ("Couldn't connect bearer '%s': '%s'",
6a41de
                 self->priv->path,
6a41de
                 error->message);
6a41de
-        if (g_error_matches (error,
6a41de
-                             MM_CORE_ERROR,
6a41de
-                             MM_CORE_ERROR_CANCELLED)) {
6a41de
+        if (   g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_CANCELLED)
6a41de
+            || g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
6a41de
             /* Will launch disconnection */
6a41de
             launch_disconnect = TRUE;
6a41de
         } else
6a41de
-- 
6a41de
1.8.3.1
6a41de