Skip to content

Commit

Permalink
PushPullInputAdapter - fix to previous patch that fixed out of order …
Browse files Browse the repository at this point in the history
…time handling. Need to account for the null event which signifies end of replay

Signed-off-by: Rob Ambalu <robert.ambalu@point72.com>
  • Loading branch information
robambalu committed Apr 17, 2024
1 parent c5acdc8 commit ee1aaf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/csp/engine/PushPullInputAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ PushPullInputAdapter::PullDataEvent * PushPullInputAdapter::nextPullEvent()
auto * event = m_poppedPullEvents.front();
m_poppedPullEvents.pop();

if( m_adjustOutOfOrderTime )
if( m_adjustOutOfOrderTime && event )
event -> time = std::max( event -> time, rootEngine() -> now() );

return event;
Expand Down

0 comments on commit ee1aaf2

Please sign in to comment.