mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CComponentsTimer: exec OnTimer cleanup after stopped thread
Users reported about crashes, but I could not verify them by myself. Supplement to:1628e76f66
Origin commit data ------------------ Branch: ni/coolstream Commit:6e9e4de638
Author: Thilo Graf <dbt@novatux.de> Date: 2017-05-29 (Mon, 29 May 2017) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user