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:
parent
87c7c80847
commit
e8c813c38c
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue