fix panic when connection is closed before packer send Shutdown
This commit is contained in:
parent
2dc9e0af3f
commit
d73e75a7cf
|
@ -57,6 +57,7 @@ func (c *adapter) Serve() {
|
||||||
default:
|
default:
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.ui.Error(fmt.Sprintf("listen.Accept failed: %v", err))
|
c.ui.Error(fmt.Sprintf("listen.Accept failed: %v", err))
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
go func(conn net.Conn) {
|
go func(conn net.Conn) {
|
||||||
errc <- c.Handle(conn, errc)
|
errc <- c.Handle(conn, errc)
|
||||||
|
|
Loading…
Reference in New Issue