Skip to content

Commit 426c1c5

Browse files
committed
bug fix
1 parent 670063a commit 426c1c5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/releaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,3 +555,6 @@ This file describes the main feature changes for each readout.exe released versi
555555
## v2.18.4 - 06/06/2023
556556
- Updated configuration parameters:
557557
- added consumer-FairMQchannel.threadsFifoSize
558+
559+
## next
560+
- Fixed bug causing crash in some conditions of buffer empty. Related to same feature (dropIncomplete) as issue fixed in v2.18.3. Different corner case, involving threads, and not always happening.

src/ConsumerFMQchannel.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ class ConsumerFMQchannel : public Consumer
763763
thIx = 0;
764764
}
765765

766-
if (msglist == nullptr) {
766+
if ((msglist == nullptr)||(msglist->size()==0)) {
767767
// this can happen when an empty item is pushed (in case there was an error processing it)
768768
// in order to keep all FIFOs in sync round robin
769769
continue;

0 commit comments

Comments
 (0)