diff options
Diffstat (limited to 'src/FbTk/Timer.cc')
-rw-r--r-- | src/FbTk/Timer.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc index b9d089f..f63ea38 100644 --- a/src/FbTk/Timer.cc +++ b/src/FbTk/Timer.cc | |||
@@ -170,8 +170,7 @@ void Timer::updateTimers(int fd) { | |||
170 | uint64_t now = FbTime::now(); | 170 | uint64_t now = FbTime::now(); |
171 | uint64_t end_time; | 171 | uint64_t end_time; |
172 | 172 | ||
173 | // see, if the first timer in the | 173 | // search for overdue timers |
174 | // list is overdue | ||
175 | if (!s_timerlist.empty()) { | 174 | if (!s_timerlist.empty()) { |
176 | 175 | ||
177 | Timer* timer = *s_timerlist.begin(); | 176 | Timer* timer = *s_timerlist.begin(); |
@@ -200,8 +199,7 @@ void Timer::updateTimers(int fd) { | |||
200 | for (it = s_timerlist.begin(); it != s_timerlist.end(); ) { | 199 | for (it = s_timerlist.begin(); it != s_timerlist.end(); ) { |
201 | 200 | ||
202 | // t->fireTimeout() might add timers to the list | 201 | // t->fireTimeout() might add timers to the list |
203 | // this invalidates 'it'. thus we store the current | 202 | // this invalidates 'it'. thus we store the current timer |
204 | // item here | ||
205 | Timer* t = *it; | 203 | Timer* t = *it; |
206 | if (now < t->getEndTime()) { | 204 | if (now < t->getEndTime()) { |
207 | break; | 205 | break; |