Skip to content

Commit 9172e02

Browse files
committed
DPL: do not wait for data if a new state is pending in FairMQ
1 parent 43c0d41 commit 9172e02

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Framework/Core/src/DataProcessingDevice.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,9 @@ bool DataProcessingDevice::ConditionalRun()
434434
auto shouldNotWait = (mWasActive &&
435435
(mDataProcessorContexes.at(0).state->streaming != StreamingState::Idle) && (mState.activeSignals.empty())) ||
436436
(mDataProcessorContexes.at(0).state->streaming == StreamingState::EndOfStreaming);
437+
if (NewStatePending()) {
438+
shouldNotWait = true;
439+
}
437440
uv_run(mState.loop, shouldNotWait ? UV_RUN_NOWAIT : UV_RUN_ONCE);
438441
}
439442

0 commit comments

Comments
 (0)