mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibCore: Cancel jobs on event loop exit
This important feature was regressed with the recent architectural change.
This commit is contained in:
parent
f2609281a3
commit
7704d89496
Notes:
sideshowbarker
2024-07-17 06:29:49 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 7704d89496
Pull-request: https://github.com/SerenityOS/serenity/pull/18774
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/LucasChollet
3 changed files with 12 additions and 0 deletions
|
@ -48,6 +48,7 @@ EventLoop& EventLoop::current()
|
|||
|
||||
void EventLoop::quit(int code)
|
||||
{
|
||||
ThreadEventQueue::current().cancel_all_pending_jobs();
|
||||
m_impl->quit(code);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue