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.
This commit is contained in:
akir 2004-09-19 21:15:47 +00:00
parent 87c7c80847
commit e8c813c38c

View file

@ -84,7 +84,8 @@ void Timer::setCommand(RefCount<Command> &cmd) {
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
}