moved startframeindice to before stop listening for gotthard

This commit is contained in:
Dhanya Maliakal 2015-02-25 10:34:57 +01:00
parent 3ee146a2ca
commit 5682a6b458

View File

@ -1699,12 +1699,17 @@ int UDPStandardImplementation::startListening(){
//problem in receiving or end of acquisition //problem in receiving or end of acquisition
if((rc < expected)||(rc <= 0)){ if((rc < expected)||(rc <= 0)){
if(myDetectorType != EIGER){
//start indices for each start of scan/acquisition - this should be done earlier for normal detectors
if((!measurementStarted) && (rc > 0) && (!ithread))
startFrameIndices(ithread);
}
stopListening(ithread,rc,packetcount,total); stopListening(ithread,rc,packetcount,total);
continue; continue;
} }
///* ///*
//start indices for each start of scan/acquisition - this should be done after to ignore first incomplete frames //eiger - start indices for each start of scan/acquisition - this should be done after to ignore first incomplete frames
if((!measurementStarted) && (rc > 0) && (!ithread)) if((!measurementStarted) && (rc > 0) && (!ithread))
startFrameIndices(ithread); startFrameIndices(ithread);
//*/ //*/