mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02: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
Notes:
sideshowbarker
2024-07-17 05:01:20 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/7fb09bf95b Pull-request: https://github.com/SerenityOS/serenity/pull/23807
@@ -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