diff --git a/main.go b/main.go index 65a152d..ab5682f 100644 --- a/main.go +++ b/main.go @@ -70,6 +70,7 @@ func main() { // Wait until all peer handlers have finished before closing the port var handlersWG sync.WaitGroup defer func() { + log.Print("Waiting for handlers to return...") handlersWG.Wait() ln.Close() }()