diff --git a/src/FbTk/Timer.cc b/src/FbTk/Timer.cc index 6a478bdf..38f1a323 100644 --- a/src/FbTk/Timer.cc +++ b/src/FbTk/Timer.cc @@ -112,7 +112,16 @@ Timer::~Timer() { void Timer::setTimeout(uint64_t timeout) { + + bool was_timing = isTiming(); + if (was_timing) { + stop(); + } m_timeout = timeout; + + if (was_timing) { + start(); + } } void Timer::setCommand(const RefCount > &cmd) {