mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCore: Fix timer expiration processing
The previous code did not account for the case when there are timers present, but none are enabled, and used a zero polling timeout. Fixes https://github.com/SerenityOS/serenity/issues/2222
This commit is contained in:
committed by
Andreas Kling
parent
b8fef58c0c
commit
345fbd1fc1
@@ -77,7 +77,7 @@ public:
|
||||
|
||||
private:
|
||||
void wait_for_event(WaitMode);
|
||||
void get_next_timer_expiration(timeval&);
|
||||
Optional<struct timeval> get_next_timer_expiration();
|
||||
|
||||
struct QueuedEvent {
|
||||
AK_MAKE_NONCOPYABLE(QueuedEvent);
|
||||
|
||||
Reference in New Issue
Block a user