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:
|
||||
if err != nil {
|
||||
c.ui.Error(fmt.Sprintf("listen.Accept failed: %v", err))
|
||||
continue
|
||||
}
|
||||
go func(conn net.Conn) {
|
||||
errc <- c.Handle(conn, errc)
|
||||
|
|
Loading…
Reference in New Issue