mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 08:04:14 +02:00
Reschedule timers even if the OnTimerExpired handler threw an exception.
This commit is contained in:
parent
bf27aad234
commit
8e4cc0de25
@ -117,7 +117,13 @@ void Timer::Call(void)
|
||||
|
||||
Timer::Ptr self = GetSelf();
|
||||
|
||||
OnTimerExpired(self);
|
||||
try {
|
||||
OnTimerExpired(self);
|
||||
} catch (...) {
|
||||
Reschedule();
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
Reschedule();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user