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