Skip to content

Commit

Permalink
ignore old 0 replay salts
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Mar 23, 2024
1 parent eb28eb3 commit 3e23580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/getGcData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ async function saveGcData(
// Steam is blocking this match for community prediction, so return error to prevent retry
return 'x-match-noretry';
}
if (!data || !data.match || !data.match.replay_salt || !data.match.players) {
if (!data || !data.match || !data.match.players || (!data.match.replay_salt && data.match.replay_state !== 'REPLAY_EXPIRED')) {
// Really old matches have a 0 replay salt so if the replay is expired it's a valid response
// Bad data but we can retry
throw new Error('invalid data');
}
Expand Down

0 comments on commit 3e23580

Please sign in to comment.