diff --git a/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp b/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp index b529e2fcb..6ef15881b 100644 --- a/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp +++ b/slsDetectorSoftware/slsDetectorAnalysis/postProcessing.cpp @@ -255,7 +255,7 @@ data queue size unlock if ((GetCurrentPositionIndex()>=npos && dataQueueSize()) || npos<2) { //&& - while(positionFinished()==0) { + while(positionFinished()==0 && npos>1) { ; } #ifdef VERBOSE