fixed a minor bug that can lead to HIGH cpuload under some circumstances. actually we must ensure that only timers with a valid handle are added to the timerslist.
akir akir
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
src/FbTk/Timer.cc
→
src/FbTk/Timer.cc
@@ -84,7 +84,8 @@
void Timer::start() { gettimeofday(&m_start, 0); - if (! m_timing) { + // only add Timers that actually DO something + if (! m_timing && *m_handler) { m_timing = true; addTimer(this); //add us to the list }