Commit 4905eab6 authored by ceddral's avatar ceddral
Browse files

gamelobby: call lobby.Update with lock

Update iterates the player map -> needs lock
parent 66567be2
......@@ -50,9 +50,9 @@ func (gl *GameLobby) Register(glp *Player) {
gl.players[] = p
gl.playerOrder = append(gl.playerOrder,
go gl.Loop(p)
func (gl *GameLobby) Unregister(name string) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment