mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-05 17:13:32 +08:00
Fix: incorrect mutex in speedTest (#153)
This commit is contained in:
parent
18f885a92a
commit
531f487629
@ -92,7 +92,7 @@ func (u *URLTest) fallback() {
|
||||
}
|
||||
|
||||
func (u *URLTest) speedTest() {
|
||||
if atomic.CompareAndSwapInt32(&u.once, 0, 1) {
|
||||
if !atomic.CompareAndSwapInt32(&u.once, 0, 1) {
|
||||
return
|
||||
}
|
||||
defer atomic.StoreInt32(&u.once, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user