bugfix for incorrect logic in game creation
This commit is contained in:
+3
-2
@@ -99,10 +99,11 @@ func addPlayer(ws *websocket.Conn) {
|
||||
return
|
||||
}
|
||||
|
||||
game, err := games.getOrCreate(gid.Id)
|
||||
force := *debug
|
||||
game, err := games.get(gid.Id, force)
|
||||
|
||||
if err != nil {
|
||||
log.Printf("ERROR: game %s not found", gid.Id)
|
||||
log.Printf("ERROR: game '%s' not found", gid.Id)
|
||||
websocket.JSON.Send(ws, NewFailure("game 404"))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user