CComponentsTimer::stopTimer() - fix crash

https://dbox2world.net/thread/12772-tuxbox-neutrino-gui-neutrino-master/?postID=182518#post182518


Origin commit data
------------------
Commit: 36b275eccb
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2017-05-29 (Mon, 29 May 2017)

Origin message was:
------------------
- CComponentsTimer::stopTimer() - fix crash

https://dbox2world.net/thread/12772-tuxbox-neutrino-gui-neutrino-master/?postID=182518#post182518
This commit is contained in:
gixxpunk
2017-05-29 14:32:35 +02:00
parent 361a1cfcac
commit 4953735ce9

View File

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