mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibCore: Always wait_for_events() when pumping the event loop
This fixes an issue where continuously posting new events to the queue would keep the event loop saturated, causing it to ignore notifiers. Since notifiers are part of the big select(), we always have to call wait_for_events() even if there are pending events. We're already smart enough to select() without a timeout if we already have pending events.
This commit is contained in:
parent
b193670967
commit
c3379e3734
Notes:
sideshowbarker
2024-07-19 06:35:59 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c3379e3734c
1 changed files with 1 additions and 2 deletions
|
@ -320,8 +320,7 @@ int EventLoop::exec()
|
|||
|
||||
void EventLoop::pump(WaitMode mode)
|
||||
{
|
||||
if (m_queued_events.is_empty())
|
||||
wait_for_event(mode);
|
||||
wait_for_event(mode);
|
||||
|
||||
decltype(m_queued_events) events;
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue