mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-04 06:04:14 +02:00
Fix pointer check in UdpRecvModule
This commit is contained in:
@@ -95,7 +95,9 @@ void UdpRecvModule::receive_thread(
|
||||
|
||||
auto* current_metadata = metadata.get();
|
||||
|
||||
if (packet_buffer.framenum != current_metadata->frame_index) {
|
||||
if (current_metadata == nullptr ||
|
||||
packet_buffer.framenum != current_metadata->frame_index) {
|
||||
|
||||
if (frame_buffer != nullptr) {
|
||||
ring_buffer_.commit(metadata);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user