Sorted out extra load

turns out we were never exiting the loop even when all bots left. Games now
shut down when there ever has been bots and they all leave (or are killed,
I think).
This commit is contained in:
sm
2013-09-04 23:23:05 -07:00
parent 3e805d3da7
commit fb0e6d92d7
4 changed files with 20 additions and 20 deletions
+2
View File
@@ -29,6 +29,7 @@ func (p *player) sender() {
}
}
p.ws.Close()
log.Printf("player %s: sender close", p.Robot.Id)
}
func (p *player) recv() {
@@ -51,6 +52,7 @@ func (p *player) recv() {
log.Printf("%+v", p.Robot.Stats)
}
}
log.Printf("player %s: recv close", p.Robot.Id)
p.ws.Close()
}