pull/444/head
cnlh 2020-03-03 14:31:14 +08:00
parent b79def8dbf
commit 8dabf5af1d
1 changed files with 2 additions and 1 deletions

View File

@ -129,8 +129,9 @@ func (s *httpServer) handleHttp(c *conn.Conn, r *http.Request) {
)
defer func() {
if connClient != nil {
s.writeConnFail(c.Conn)
connClient.Close()
}else {
s.writeConnFail(c.Conn)
}
c.Close()
}()