diff --git a/server.go b/server.go index 36a3077..db5c381 100644 --- a/server.go +++ b/server.go @@ -40,14 +40,14 @@ func serveWs(c *coordinator.Coordinator, w http.ResponseWriter, r *http.Request) log.Println("Error during message reading:", err) break } - if cmd.Command != tome_lib.SessionCmdPoll { + if cmd.Command != tome_lib.SessionCmdPoll && (cmd.GameCommand.Type != tome_lib.StateCmd && cmd.GameCommand.Cmd != "g") { log.Printf("Received: %s", cmd) } resp := c.Coordinate(&cmd) if err != nil { panic(err) } - if cmd.Command != tome_lib.SessionCmdPoll { + if cmd.Command != tome_lib.SessionCmdPoll && (cmd.GameCommand.Type != tome_lib.StateCmd && cmd.GameCommand.Cmd != "g") { log.Printf("sending: %v", resp.Result) } err = conn.WriteJSON(resp)