Log waiting for handlers
This commit is contained in:
parent
16be2ef41c
commit
5ff41b76d4
1 changed files with 1 additions and 0 deletions
1
main.go
1
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()
|
||||
}()
|
||||
|
|
Loading…
Reference in a new issue