aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZach Latta <zach@zachlatta.com>2016-03-06 09:56:03 -0500
committerZach Latta <zach@zachlatta.com>2016-03-06 09:56:03 -0500
commita7abdec0f1ea46c2d21e75c7f8822f9cb686a8fc (patch)
treea5ec9ebb8d12e1b54e111c269f4f9e4acf3db641
parent40c72e68e587b1c3bf390260e59c2c4af6e15abd (diff)
downloadsshtron-a7abdec0f1ea46c2d21e75c7f8822f9cb686a8fc.tar.gz
Run renders in goroutines
-rw-r--r--game.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/game.go b/game.go
index 28379b4..733222a 100644
--- a/game.go
+++ b/game.go
@@ -33,7 +33,7 @@ func (h *Hub) Run(g *Game) {
select {
case <-h.Redraw:
for s := range h.Sessions {
- g.Render(s)
+ go g.Render(s)
}
case s := <-h.Register:
// Hide the cursor
Un proyecto texto-plano.xyz