mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibCore+Ladybird: Make unregistering timer infallible
Let's force calling code to provide valid timer ids. No code changes are required since, surprise, nobody used this obscure functionality.
This commit is contained in:
parent
21097d1c9e
commit
bed4af6fef
10 changed files with 17 additions and 23 deletions
|
@ -129,10 +129,7 @@ void EventReceiver::stop_timer()
|
|||
{
|
||||
if (!m_timer_id)
|
||||
return;
|
||||
bool success = Core::EventLoop::unregister_timer(m_timer_id);
|
||||
if (!success) {
|
||||
dbgln("{:p} could not unregister timer {}", this, m_timer_id);
|
||||
}
|
||||
Core::EventLoop::unregister_timer(m_timer_id);
|
||||
m_timer_id = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue