summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index feb3dfe..3b46af5 100644
--- a/main.go
+++ b/main.go
@@ -40,6 +40,8 @@ loop:
// p-channels (p1, p2, etc.)
close(p0)
+ // Wait for all of the in-flight player goroutines to
+ // finish. You need this!
wg.Wait()
// If any of these prints out, we know we did something wrong.