From 82d8b7d875604964733b81cc1e93ac8d4353451b Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Sat, 3 Feb 2018 22:25:06 -0500 Subject: [PATCH] break out of listen loop on error --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 8c6719a..2ae8767 100644 --- a/server.go +++ b/server.go @@ -17,7 +17,7 @@ func (s *Server) listen() { for s.running { conn, err := s.listener.Accept() if err != nil { - panic(err) + break } buf := make([]byte, 512) // Ignore any content