Log waiting for handlers

This commit is contained in:
Josh Deprez 2024-03-30 17:04:27 +11:00
parent 16be2ef41c
commit 5ff41b76d4
Signed by: josh
SSH key fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw

View file

@ -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()
}()