From fa42ed92fbff60429e3342b496445a2c935ef5c7 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 30 Nov 2019 14:10:32 -0800 Subject: [PATCH] Ensure we count the number for the waitgroup correctly --- wings.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wings.go b/wings.go index a53daab..6788392 100644 --- a/wings.go +++ b/wings.go @@ -81,6 +81,8 @@ func main() { wg := sizedwaitgroup.New(4) for _, serv := range servers { + wg.Add() + go func(s *server.Server) { defer wg.Done()