Reschedule timers even if the OnTimerExpired handler threw an exception.

This commit is contained in:
Gunnar Beutner 2013-03-19 16:12:28 +01:00
parent bf27aad234
commit 8e4cc0de25
1 changed files with 7 additions and 1 deletions

View File

@ -117,7 +117,13 @@ void Timer::Call(void)
Timer::Ptr self = GetSelf();
OnTimerExpired(self);
try {
OnTimerExpired(self);
} catch (...) {
Reschedule();
throw;
}
Reschedule();
}