CComponentsTimer: exec OnTimer cleanup after stopped thread

Users reported about crashes, but I could not verify them by myself.

Supplement to: c0fe5d2402
This commit is contained in:
2017-05-29 21:14:10 +02:00
parent 4f5d216120
commit 6e9e4de638

View File

@@ -143,10 +143,12 @@ bool CComponentsTimer::startTimer()
bool CComponentsTimer::stopTimer()
{
tm_enable = false;
OnTimer.clear();
stopThread();
if(tm_thread == 0)
if(tm_thread == 0){
if (!OnTimer.empty())
OnTimer.clear();
return true;
}
return false;
}