Skip to content

Commit ee1aaf2

Browse files
committed
PushPullInputAdapter - fix to previous patch that fixed out of order time handling. Need to account for the null event which signifies end of replay
Signed-off-by: Rob Ambalu <[email protected]>
1 parent c5acdc8 commit ee1aaf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/csp/engine/PushPullInputAdapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ PushPullInputAdapter::PullDataEvent * PushPullInputAdapter::nextPullEvent()
8181
auto * event = m_poppedPullEvents.front();
8282
m_poppedPullEvents.pop();
8383

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

8787
return event;

0 commit comments

Comments
 (0)