From: Matthias Clasen Date: Fri, 15 Jun 2012 19:16:13 +0000 (-0400) Subject: GWakeup: Avoid extraneous wakeups X-Git-Tag: 2.33.3~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d0c8895a073625ce87bf1604b9ab72cc7e15c616;p=platform%2Fupstream%2Fglib.git GWakeup: Avoid extraneous wakeups We were checking the wrong number here, and waking up unnecessarily. https://bugzilla.gnome.org/show_bug.cgi?id=678052 --- 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