fix panic when connection is closed before packer send Shutdown

This commit is contained in:
Billie Cleek 2015-12-19 12:15:04 -08:00
parent 2dc9e0af3f
commit d73e75a7cf
1 changed files with 1 additions and 0 deletions

View File

@ -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)