From 38c21448cca53d884b20bc02aa8e2740882f408c Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 7 Mar 2022 14:49:02 -0500 Subject: [PATCH] maybe don't respond twice --- api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api.go b/api.go index 3783311..68dd144 100644 --- a/api.go +++ b/api.go @@ -32,6 +32,7 @@ func (a *API) NewGame(res http.ResponseWriter, req *http.Request) { initDummy(g.simulator) } respondWithJSON(res, http.StatusOK, newGameResp{i, "red"}) + return } if !g.bluePlayer.Ready { g.bluePlayer.Ready = true