cleanly close spectator if server dies
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ func main() {
|
||||
|
||||
go func() {
|
||||
if err := c.Play(); err != nil {
|
||||
log.Fatal(err)
|
||||
close(spectator.Die)
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user