minor bug fix, docker

This commit is contained in:
ffdfgdfg
2019-11-27 22:46:34 +08:00
parent 32e3d411ad
commit 78ebeba1bb
6 changed files with 42 additions and 9 deletions

View File

@@ -43,9 +43,16 @@ func Accept(l net.Listener, f func(c net.Conn)) {
if strings.Contains(err.Error(), "use of closed network connection") {
break
}
if strings.Contains(err.Error(), "the mux has closed") {
break
}
logs.Warn(err)
continue
}
if c == nil {
logs.Warn("nil connection")
break
}
go f(c)
}
}