Merge branch 'development' into LTS_development

# Conflicts:
#	lib/stream.cpp
This commit is contained in:
Thulinma 2016-09-21 12:38:51 +02:00
commit 9060d7b618
2 changed files with 22 additions and 17 deletions

View file

@ -169,8 +169,10 @@ namespace tthread {
// The thread is no longer executing
if (ti->mThread) {
lock_guard<mutex> guard(ti->mThread->mDataMutex);
ti->mThread->mNotAThread = true;
ti->mThread->ti_copy = 0;
if (ti->mThread){
ti->mThread->mNotAThread = true;
ti->mThread->ti_copy = 0;
}
}
// The thread is responsible for freeing the startup information