Fix crash that could occur while scrubbing in replays

[CL 2586571 by John Pollard in Main branch]
This commit is contained in:
John Pollard
2015-06-12 18:16:26 -04:00
committed by John.Pollard@epicgames.com
parent 44aac5751a
commit 7b9ad057ea

View File

@@ -481,6 +481,12 @@ void FHttpNetworkReplayStreamer::GotoCheckpointIndex( const int32 CheckpointInde
void FHttpNetworkReplayStreamer::GotoTimeInMS( const uint32 TimeInMS, const FOnCheckpointReadyDelegate& Delegate )
{
if ( IsHttpRequestInFlight() || HasPendingHttpRequests() )
{
UE_LOG( LogHttpReplay, Log, TEXT( "FHttpNetworkReplayStreamer::GotoTimeInMS. Busy processing pending requests." ) );
return;
}
if ( GotoCheckpointDelegate.IsBound() )
{
// If we're currently going to a checkpoint now, ignore this request