From 872e12fd48cce429489f76d8ad39b60497ef6aa3 Mon Sep 17 00:00:00 2001
From: Jan de Cuveland <cuveland@compeng.uni-frankfurt.de>
Date: Tue, 14 Jun 2022 09:11:10 +0200
Subject: [PATCH] Release the current timeslice before receiving the next one

---
 reco/tasks/CbmSourceTs.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/reco/tasks/CbmSourceTs.cxx b/reco/tasks/CbmSourceTs.cxx
index 17fc083a99..afbcfb44f1 100644
--- a/reco/tasks/CbmSourceTs.cxx
+++ b/reco/tasks/CbmSourceTs.cxx
@@ -61,6 +61,7 @@ Int_t CbmSourceTs::ReadEvent(UInt_t)
   std::cout << std::endl;
   if (fNumCalls == 0) LOG(info) << "SourceTs: Init call to ReadEvent";
   else {
+    fFlesTs = nullptr;
     fFlesTs = fFlesSource->get();
     if (!fFlesTs) {
       LOG(info) << "SourceTs: End of archive reached; stopping run.";
-- 
GitLab