mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
event: don't disarm invalid timerfd
This commit is contained in:
parent
86befb4098
commit
c57b5ca301
@ -1412,6 +1412,9 @@ static int event_arm_timer(
|
||||
a = prioq_peek(earliest);
|
||||
if (!a || a->enabled == SD_EVENT_OFF) {
|
||||
|
||||
if (timer_fd < 0)
|
||||
return 0;
|
||||
|
||||
if (*next == (usec_t) -1)
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user