diff options
author | Zach Latta <zach@zachlatta.com> | 2016-03-06 09:56:03 -0500 |
---|---|---|
committer | Zach Latta <zach@zachlatta.com> | 2016-03-06 09:56:03 -0500 |
commit | a7abdec0f1ea46c2d21e75c7f8822f9cb686a8fc (patch) | |
tree | a5ec9ebb8d12e1b54e111c269f4f9e4acf3db641 | |
parent | 40c72e68e587b1c3bf390260e59c2c4af6e15abd (diff) | |
download | sshtron-a7abdec0f1ea46c2d21e75c7f8822f9cb686a8fc.tar.gz |
Run renders in goroutines
-rw-r--r-- | game.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |