GWakeup: Avoid extraneous wakeups

We were checking the wrong number here, and waking up unnecessarily.
https://bugzilla.gnome.org/show_bug.cgi?id=678052
This commit is contained in:
Matthias Clasen 2012-06-15 15:16:13 -04:00
parent 6a5b3729ab
commit d0c8895a07

View File

@ -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