zeroconf icon indicating copy to clipboard operation
zeroconf copied to clipboard

server.Shutdown() should print errors

Open leventov opened this issue 4 years ago • 0 comments

https://github.com/grandcat/zeroconf/blob/c2d1b4121200e6bf8490af806aa6f3dc6d37446b/server.go#L195-L198

Should be

if err := s.shutdown(); err != nil {
  log.Printf("Error shutting down the server: %v", err)
}

shutdown() itself should propagate or print errors from closing ipv4conn and ipv6conn.

leventov avatar May 21 '20 08:05 leventov