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() {
|
defer func() {
|
||||||
if connClient != nil {
|
if connClient != nil {
|
||||||
s.writeConnFail(c.Conn)
|
|
||||||
connClient.Close()
|
connClient.Close()
|
||||||
|
}else {
|
||||||
|
s.writeConnFail(c.Conn)
|
||||||
}
|
}
|
||||||
c.Close()
|
c.Close()
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Reference in New Issue