Skip to content

Commit

Permalink
break out of listen loop on error
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschoon committed Feb 4, 2018
1 parent 2fc414e commit 82d8b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82d8b7d

Please sign in to comment.