mirror of https://github.com/Icinga/icinga2.git
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();
|
||||
|
||||
try {
|
||||
OnTimerExpired(self);
|
||||
} catch (...) {
|
||||
Reschedule();
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
Reschedule();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue