Always sent board event after a client joins a game
This commit is contained in:
parent
cf99329267
commit
bfad023bca
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue