avoid to call AmThread::on_stop() when the thread is already stopped.

sayer/1.4-spce2.6
Raphael Coeffic 15 years ago committed by Stefan Sayer
parent 7b28c6125c
commit f62bfd1d2c

@ -143,6 +143,11 @@ void AmThread::stop()
{
_m_td.lock();
if(is_stopped()){
_m_td.unlock();
return;
}
// gives the thread a chance to clean up
DBG("Thread %lu (%lu) calling on_stop, give it a chance to clean up.\n",
(unsigned long int) _pid, (unsigned long int) _td);

Loading…
Cancel
Save