mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
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:
parent
6a5b3729ab
commit
d0c8895a07
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user