feat(资源释放): 修复并行取消与资源释放
build.yaml / build (push) Successful in 43s

This commit is contained in:
xiaoqidun committed 2026-10-18 01:56:18 +08:00
1 parent a0899fa150
commit 0d2e1ccdf2
2 files changed
+7 -1

No files matched your search

+5
View File
@@ -775,6 +775,8 @@ func (h *Host) close() {
cancel()
}
engines := h.engines
results := h.batchResults
h.batchResults = nil
for _, stop := range h.engineStops {
stop()
}
@@ -784,6 +786,9 @@ func (h *Host) close() {
for _, engine := range engines {
_ = engine.Close()
}
for _, result := range results {
h.discard(result)
}
_ = h.files.close()
}