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