Skip to content

Commit

Permalink
End game when cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Dec 10, 2024
1 parent 070119f commit 3059ebe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions referee/referee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ try {
if (Object.keys(data).length > 1) {
console.log("Cleaning up old game state");
try {
await fetch("http://localhost:8000/game/end_game", {
method: "POST",
});
await fetch("http://localhost:8000/game/cleanup", {
method: "POST",
});
Expand Down

0 comments on commit 3059ebe

Please sign in to comment.