chore: rebuild sync.Once visit code

This commit is contained in:
wwqgtxx
2024-03-05 10:57:25 +08:00
parent 8b9813079b
commit 974332c0cc
4 changed files with 56 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ import (
"sync"
"time"
mihomoOnce "github.com/metacubex/mihomo/common/once"
mihomoHttp "github.com/metacubex/mihomo/component/http"
C "github.com/metacubex/mihomo/constant"
"github.com/metacubex/mihomo/log"
@@ -96,5 +97,5 @@ func DownloadMMDB(path string) (err error) {
}
func Reload() {
once = sync.Once{}
mihomoOnce.Reset(&once)
}