Merge branch '3.0.1' into developer

This commit is contained in:
Dhanya Maliakal
2017-12-11 18:03:01 +01:00
3 changed files with 12 additions and 9 deletions

View File

@ -300,9 +300,8 @@ multiSlsDetector::~multiSlsDetector() {
int multiSlsDetector::createThreadPool(){
if(threadpool){
threadpool->destroy_threadpool();
}
if(threadpool)
destroyThreadPool();
int numthreads = thisMultiDetector->numberOfDetectors;
if(numthreads < 1){
numthreads = 1; //create threadpool anyway, threads initialized only when >1 detector added
@ -328,7 +327,6 @@ int multiSlsDetector::createThreadPool(){
void multiSlsDetector::destroyThreadPool(){
if(threadpool){
threadpool->destroy_threadpool();
delete threadpool;
threadpool=0;
#ifdef VERBOSE