[mutter] color-device: Return early if the deivce becomes ready due to an error



commit 2476a8cedd5b0b0652a2947437b6bc3aacf411f0
Author: Sebastian Wick <sebastian wick redhat com>
Date:   Fri Sep 16 15:48:17 2022 +0200

    color-device: Return early if the deivce becomes ready due to an error
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2627>

 src/backends/meta-color-device.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/backends/meta-color-device.c b/src/backends/meta-color-device.c
index 2652737cbb..53b5865486 100644
--- a/src/backends/meta-color-device.c
+++ b/src/backends/meta-color-device.c
@@ -378,6 +378,7 @@ on_cd_device_connected (GObject      *source_object,
 
       g_cancellable_cancel (color_device->cancellable);
       meta_color_device_notify_ready (color_device, FALSE);
+      return;
     }
   else
     {
@@ -434,6 +435,7 @@ ensure_device_profile_cb (GObject      *source_object,
 
       g_cancellable_cancel (color_device->cancellable);
       meta_color_device_notify_ready (color_device, FALSE);
+      return;
     }
 
   meta_topic (META_DEBUG_COLOR, "Color device '%s' generated",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]