Always sent board event after a client joins a game

This commit is contained in:
Trevor Slocum 2023-09-15 22:57:16 -07:00
parent cf99329267
commit bfad023bca

View file

@ -163,9 +163,7 @@ func (g *serverGame) addClient(client *serverClient) (bool, string) {
opponent := g.opponent(client)
if opponent != nil {
opponent.sendEvent(ev)
if !opponent.json {
g.sendBoard(opponent)
}
g.sendBoard(opponent)
}
}()
switch {