mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +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:
committed by
Andreas Kling
parent
f66d33423b
commit
7fb09bf95b
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user