mirror of
https://github.com/xweiba/location-spoofer.git
synced 2026-09-21 22:30:46 +08:00
fix: WiFi重连后等3秒再检测
This commit is contained in:
@@ -185,6 +185,8 @@ let revision = mapState.selectMapTap(coordinate)
|
||||
NetworkMonitor.shared.onWiFiChanged = { [self] in
|
||||
guard spoofState == .active else { return }
|
||||
Task { @MainActor in
|
||||
try? await Task.sleep(nanoseconds: 3_000_000_000)
|
||||
guard spoofState == .active else { return }
|
||||
let target = currentSelectionFavorite
|
||||
let result = await setup.runVerificationTest(testLat: target.latitude, testLon: target.longitude)
|
||||
if !result.isSuccess, let tip = result.tipKind {
|
||||
|
||||
Reference in New Issue
Block a user