mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-25 04:02:28 +03:00
LibCore: Ignore timer events after stop() has been called
This commit is contained in:
parent
003ac1bd51
commit
61148e9bc2
Notes:
sideshowbarker
2024-07-17 08:36:27 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/61148e9bc2 Pull-request: https://github.com/SerenityOS/serenity/pull/23712 Reviewed-by: https://github.com/awesomekling
@ -41,6 +41,8 @@ void EventReceiver::event(Core::Event& event)
|
|||||||
{
|
{
|
||||||
switch (event.type()) {
|
switch (event.type()) {
|
||||||
case Core::Event::Timer:
|
case Core::Event::Timer:
|
||||||
|
if (!m_timer_id)
|
||||||
|
break; // Too late, the timer was already stopped.
|
||||||
return timer_event(static_cast<TimerEvent&>(event));
|
return timer_event(static_cast<TimerEvent&>(event));
|
||||||
case Core::Event::ChildAdded:
|
case Core::Event::ChildAdded:
|
||||||
case Core::Event::ChildRemoved:
|
case Core::Event::ChildRemoved:
|
||||||
|
Loading…
Reference in New Issue
Block a user