mirror of
https://github.com/ehang-io/nps.git
synced 2026-10-31 16:52:12 +08:00
fix:#433
This commit is contained in:
1 parent
b79def8dbf
commit
8dabf5af1d
1 file changed
+2
-1
@@ -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()
|
||||
}()
|
||||
|
||||
Reference in new issue
Block a user