mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-02 16:33:13 +00:00
LibWeb: Skip not runnable in spin_processing_tasks_with_source_until()
Fixes https://github.com/SerenityOS/serenity/issues/23801
This commit is contained in:
parent
f66d33423b
commit
7fb09bf95b
Notes:
sideshowbarker
2024-07-17 05:01:20 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 7fb09bf95b
Pull-request: https://github.com/SerenityOS/serenity/pull/23807
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ void EventLoop::spin_processing_tasks_with_source_until(Task::Source source, JS:
|
|||
return true;
|
||||
if (m_task_queue.has_runnable_tasks()) {
|
||||
auto tasks = m_task_queue.take_tasks_matching([&](auto& task) {
|
||||
return task.source() == source;
|
||||
return task.source() == source && task.is_runnable();
|
||||
});
|
||||
|
||||
for (auto& task : tasks.value()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue