Fix bug counting two consecutive Timer::start() calls as two different timers

This commit is contained in:
David Capello 2018-12-22 23:56:35 -03:00
parent 7a57007fa3
commit eca3080d24

View File

@ -57,8 +57,10 @@ void Timer::start()
assert_ui_thread();
m_lastTick = base::current_tick();
m_running = true;
++running_timers;
if (!m_running) {
m_running = true;
++running_timers;
}
}
void Timer::stop()