mirror of https://github.com/ehang-io/nps
fix:#433
parent
b79def8dbf
commit
8dabf5af1d
|
@ -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()
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue