diff --git a/os/src/lib/dde_kit/timer.cc b/os/src/lib/dde_kit/timer.cc index 04863d4b68..3c2119302d 100644 --- a/os/src/lib/dde_kit/timer.cc +++ b/os/src/lib/dde_kit/timer.cc @@ -138,8 +138,8 @@ class dde_kit_timer : public Alarm, public List::Element { /* if timer is really pending, call registered handler function */ if (_pending) { - _handler(_priv); _pending = false; + _handler(_priv); } /* do not schedule again */