Skip to content

Commit

Permalink
Merge pull request Point72#195 from Point72/bugfix/push_pull_ooo_patch
Browse files Browse the repository at this point in the history
PushPullInputAdapter - fix to previous patch that fixed out of order …
  • Loading branch information
robambalu authored and Carreau committed May 13, 2024
2 parents 3ca95b3 + f11b8fc commit ef1a239
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 ef1a239

Please sign in to comment.