fix doUpgrade deadlock

This commit is contained in:
M09Ic 2024-08-16 00:32:53 +08:00
parent 411f24d94d
commit 32f558f9c5

View File

@ -141,6 +141,7 @@ func (pool *CheckPool) Invoke(v interface{}) {
pool.doUpgrade(bl)
} else {
bl = pkg.NewBaseline(req.URI(), req.Host(), resp)
bl.ReqDepth = unit.depth
bl.Collect()
if bl.Status == 400 {
pool.doUpgrade(bl)