Skip to content

Commit 7fa5fbf

Browse files
authored
Merge pull request #136 from rest-for-physics/alvaroezq_fixStopRuns
TRestRawMultiFEMINOSToSignalProcess exits when processing a stopped run .aqs file
2 parents 22760ed + fa4f52e commit 7fa5fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TRestRawMultiFEMINOSToSignalProcess.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ TRestEvent* TRestRawMultiFEMINOSToSignalProcess::ProcessEvent(TRestEvent* inputE
363363
if (!endOfEvent) {
364364
if (fread(&(cur_fr[fr_offset]), sizeof(unsigned short), nb_sh, fInputBinFile) != nb_sh) {
365365
printf("Error: could not read %d bytes.\n", (nb_sh * 2));
366-
exit(1);
366+
return nullptr; // exit(1);
367367
}
368368
totalBytesReaded += sizeof(unsigned short) * nb_sh;
369369

0 commit comments

Comments
 (0)