mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 18:01:13 +02:00
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:
@@ -143,10 +143,12 @@ bool CComponentsTimer::startTimer()
|
|||||||
bool CComponentsTimer::stopTimer()
|
bool CComponentsTimer::stopTimer()
|
||||||
{
|
{
|
||||||
tm_enable = false;
|
tm_enable = false;
|
||||||
OnTimer.clear();
|
|
||||||
stopThread();
|
stopThread();
|
||||||
if(tm_thread == 0)
|
if(tm_thread == 0){
|
||||||
|
if (!OnTimer.empty())
|
||||||
|
OnTimer.clear();
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user