minor bug fix, docker

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

No files matched your search

+7
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)
}
}