cleanly close spectator if server dies

This commit is contained in:
sm
2014-05-13 00:23:14 -07:00
parent f06ccd2588
commit f6439cf41d
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ func main() {
go func() {
if err := c.Play(); err != nil {
log.Fatal(err)
close(spectator.Die)
}
}()