break out of listen loop on error
This commit is contained in:
parent
2fc414efdd
commit
82d8b7d875
|
@ -17,7 +17,7 @@ func (s *Server) listen() {
|
||||||
for s.running {
|
for s.running {
|
||||||
conn, err := s.listener.Accept()
|
conn, err := s.listener.Accept()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
break
|
||||||
}
|
}
|
||||||
buf := make([]byte, 512)
|
buf := make([]byte, 512)
|
||||||
// Ignore any content
|
// Ignore any content
|
||||||
|
|
Loading…
Reference in New Issue