Skip to content

Commit 6c1a538

Browse files
committed
stop playing at beginning of EOR
1 parent d01e89a commit 6c1a538

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ReadoutEquipmentPlayer.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ ReadoutEquipmentPlayer::~ReadoutEquipmentPlayer()
197197

198198
DataBlockContainerReference ReadoutEquipmentPlayer::getNextBlock()
199199
{
200+
if (!isDataOn) {
201+
return nullptr;
202+
}
203+
200204
// query memory pool for a free block
201205
DataBlockContainerReference nextBlock = nullptr;
202206
try {

0 commit comments

Comments
 (0)