cnlh 5 năm trước cách đây
mục cha
commit
8dabf5af1d
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      server/proxy/http.go

+ 2 - 1
server/proxy/http.go

@@ -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()
 	}()