aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Timer.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2012-09-14 06:52:13 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-09-14 06:52:13 (GMT)
commite512c1becd6fc267e64460f0883a16b4975da19e (patch)
treee8ed253b12726f909bd8f31e00feba9ccda782a9 /src/FbTk/Timer.cc
parent2f279e96b16b40ac8f1aa0b9850dd13f7ec4d0ae (diff)
downloadfluxbox-e512c1becd6fc267e64460f0883a16b4975da19e.zip
fluxbox-e512c1becd6fc267e64460f0883a16b4975da19e.tar.bz2
minor cosmetic
Diffstat (limited to 'src/FbTk/Timer.cc')
-rw-r--r--src/FbTk/Timer.cc6
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;