This commit is contained in:
风扇滑翔翼
2025-12-22 05:13:52 +00:00
committed by GitHub
parent 42214c3287
commit c6a76ff281
+2 -3
View File
@@ -5,9 +5,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/xtls/xray-core/features/policy"
"github.com/xtls/xray-core/common/errors" "github.com/xtls/xray-core/common/errors"
"github.com/xtls/xray-core/common/signal" "github.com/xtls/xray-core/common/signal"
"github.com/xtls/xray-core/features/policy"
"github.com/xtls/xray-core/features/stats" "github.com/xtls/xray-core/features/stats"
) )
@@ -217,9 +217,8 @@ func copyV(r *SingleReader, w Writer, handler *copyHandler) error {
} }
}() }()
wg.Wait() wg.Wait()
for range cache {
// drain cache // drain cache
b := <-cache for b := range cache {
b.Release() b.Release()
} }
if wErr != nil { if wErr != nil {