solved problem of configuring twice to make receiver none

This commit is contained in:
Dhanya Maliakal 2016-07-12 16:45:00 +02:00
parent 74dfe04a18
commit 342d4f8c30

View File

@ -392,6 +392,10 @@ int multiSlsDetector::addSlsDetector(int id, int pos) {
//set offsets
updateOffsets();
destroyThreadPool();
if(createThreadPool() == FAIL)
exit(-1);
return thisMultiDetector->numberOfDetectors;
@ -859,6 +863,9 @@ int multiSlsDetector::removeSlsDetector(int pos) {
}
updateOffsets();
destroyThreadPool();
if(createThreadPool() == FAIL)
exit(-1);
return thisMultiDetector->numberOfDetectors;
}