meh/rust-tun has bug on windows and may stuck on large traffic.
This commit is contained in:
sijie.sun
2024-08-06 22:16:20 +08:00
committed by Sijie.Sun
parent 4a5e426730
commit d1293276ce
5 changed files with 86 additions and 106 deletions

View File

@@ -159,14 +159,11 @@ async function watchNetworkInstance() {
if (subscribe_running) {
return
}
console.log('network instance change')
subscribe_running = true
try {
await onNetworkInstanceChange()
} catch (_) {
}
console.log('network instance change done')
subscribe_running = false
})
}