mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
try fix segfault with --enable-cleanup
This commit is contained in:
@@ -264,8 +264,11 @@ bool CStreamManager::Stop()
|
|||||||
if (!running)
|
if (!running)
|
||||||
return false;
|
return false;
|
||||||
running = false;
|
running = false;
|
||||||
|
bool ret = false;
|
||||||
|
if (OpenThreads::Thread::CurrentThread() == this) {
|
||||||
cancel();
|
cancel();
|
||||||
bool ret = (OpenThreads::Thread::join() == 0);
|
ret = (OpenThreads::Thread::join() == 0);
|
||||||
|
}
|
||||||
StopAll();
|
StopAll();
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user