mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-30 06:46:19 +00:00
enable delay before deleting tun
This commit is contained in:
parent
50449df08d
commit
07e07a24c1
1 changed files with 6 additions and 6 deletions
|
@ -554,11 +554,11 @@ namespace ServiceLib.ViewModels
|
|||
{
|
||||
await Task.Run(() =>
|
||||
{
|
||||
//if (_config.tunModeItem.enableTun)
|
||||
//{
|
||||
// Task.Delay(1000).Wait();
|
||||
// WindowsUtils.RemoveTunDevice();
|
||||
//}
|
||||
if (_config.tunModeItem.enableTun)
|
||||
{
|
||||
Task.Delay(1000).Wait();
|
||||
WindowsUtils.RemoveTunDevice();
|
||||
}
|
||||
|
||||
var node = ConfigHandler.GetDefaultServer(_config);
|
||||
CoreHandler.Instance.LoadCore(node);
|
||||
|
@ -601,4 +601,4 @@ namespace ServiceLib.ViewModels
|
|||
|
||||
#endregion Presets
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue