[glib] GWakeup: Avoid extraneous wakeups
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GWakeup: Avoid extraneous wakeups
- Date: Fri, 15 Jun 2012 19:16:35 +0000 (UTC)
commit d0c8895a073625ce87bf1604b9ab72cc7e15c616
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 15 15:16:13 2012 -0400
GWakeup: Avoid extraneous wakeups
We were checking the wrong number here, and waking up unnecessarily.
https://bugzilla.gnome.org/show_bug.cgi?id=678052
glib/gmain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmain.c b/glib/gmain.c
index 760f179..60c80c7 100644
--- a/glib/gmain.c
+++ b/glib/gmain.c
@@ -2976,7 +2976,7 @@ g_main_context_check (GMainContext *context,
return FALSE;
}
- if (context->wake_up_rec.events)
+ if (context->wake_up_rec.revents)
g_wakeup_acknowledge (context->wakeup);
/* If the set of poll file descriptors changed, bail out
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]