diff --git a/src/thread/pitimer.cpp b/src/thread/pitimer.cpp index d9b755a7..605d1ebb 100755 --- a/src/thread/pitimer.cpp +++ b/src/thread/pitimer.cpp @@ -321,10 +321,8 @@ _PITimerImp_Pool::Pool * _PITimerImp_Pool::Pool::instance() { void _PITimerImp_Pool::Pool::add(_PITimerImp_Pool * t) { //piCout << "add ..."; lock(); - if (!timers.contains(t)) { - timers << t; - to_remove.removeOne(t); - } + to_remove.removeOne(t); + if (!timers.contains(t)) timers << t; unlock(); //piCout << "add done"; }