Skip to content

Commit b4138b4

Browse files
committed
Prevent adding spikes to queue when recording is inactive
1 parent f1577fa commit b4138b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Processors/RecordNode/RecordNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ void RecordNode::handleSpike(SpikePtr spike)
790790

791791
eventMonitor->receivedSpikes++;
792792

793-
if (recordSpikes)
793+
if (recordSpikes && isRecording)
794794
{
795795
spike->setTimestampInSeconds(synchronizer.convertSampleNumberToTimestamp(spike->getStreamId(),
796796
spike->getSampleNumber()));

0 commit comments

Comments
 (0)