enable delay before deleting tun

This commit is contained in:
Daniil 2024-10-20 01:00:45 +03:00 committed by GitHub
parent 50449df08d
commit 07e07a24c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -554,11 +554,11 @@ namespace ServiceLib.ViewModels
{ {
await Task.Run(() => await Task.Run(() =>
{ {
//if (_config.tunModeItem.enableTun) if (_config.tunModeItem.enableTun)
//{ {
// Task.Delay(1000).Wait(); Task.Delay(1000).Wait();
// WindowsUtils.RemoveTunDevice(); WindowsUtils.RemoveTunDevice();
//} }
var node = ConfigHandler.GetDefaultServer(_config); var node = ConfigHandler.GetDefaultServer(_config);
CoreHandler.Instance.LoadCore(node); CoreHandler.Instance.LoadCore(node);
@ -601,4 +601,4 @@ namespace ServiceLib.ViewModels
#endregion Presets #endregion Presets
} }
} }