[gnome-builder/gnome-builder-3-20] cache: disbale set_return_on_cancel()



commit a3e7adbd8f87233e35175847067e5b5c1faf5388
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 10 14:43:47 2016 +0300

    cache: disbale set_return_on_cancel()
    
    We don't want to return until we are ready with these, since there is a
    lot of trickery in play, this is safer.

 contrib/egg/egg-task-cache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/contrib/egg/egg-task-cache.c b/contrib/egg/egg-task-cache.c
index af92cdb..0d1865b 100644
--- a/contrib/egg/egg-task-cache.c
+++ b/contrib/egg/egg-task-cache.c
@@ -434,6 +434,7 @@ egg_task_cache_get_async (EggTaskCache        *self,
   g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
 
   task = g_task_new (self, cancellable, callback, user_data);
+  g_task_set_return_on_cancel (task, FALSE);
 
   /*
    * If we have the answer, return it now.


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