[gnome-builder] egg-task-cache: use a stricter assertion for the GCancellable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] egg-task-cache: use a stricter assertion for the GCancellable
- Date: Tue, 7 Mar 2017 10:15:20 +0000 (UTC)
commit 5ad9526ce03db9578a262d9f7fa34ccb8d5da3c2
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Mar 7 10:43:21 2017 +0100
egg-task-cache: use a stricter assertion for the GCancellable
The GCancellable that emitted "cancelled" should be the same as the one
in CancelledData, and it can't be NULL.
https://bugzilla.gnome.org/show_bug.cgi?id=779660
contrib/egg/egg-task-cache.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/egg/egg-task-cache.c b/contrib/egg/egg-task-cache.c
index 716fd3f..48e7c45 100644
--- a/contrib/egg/egg-task-cache.c
+++ b/contrib/egg/egg-task-cache.c
@@ -487,7 +487,7 @@ egg_task_cache_cancelled_cb (GCancellable *cancellable,
g_assert (EGG_IS_TASK_CACHE (self));
g_assert (data != NULL);
g_assert (data->self == self);
- g_assert (!data->cancellable || G_IS_CANCELLABLE (data->cancellable));
+ g_assert (data->cancellable == cancellable);
data->cancelled_id = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]