mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
fix:#433
This commit is contained in:
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…
x
Reference in New Issue
Block a user