Skip to content

Commit

Permalink
Merge ab06ba8 into 525c8f6
Browse files Browse the repository at this point in the history
  • Loading branch information
fladrif committed Oct 22, 2021
2 parents 525c8f6 + ab06ba8 commit fb6ad3a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/master/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ export class Master {
const { deltalog, ...stateWithoutDeltalog } = state;

let newMetadata: Server.MatchData | undefined;
if (metadata && metadata.gameover === undefined) {
if (
metadata &&
(metadata.gameover === undefined || metadata.gameover === null)
) {
newMetadata = {
...metadata,
updatedAt: Date.now(),
Expand Down

0 comments on commit fb6ad3a

Please sign in to comment.