mirror of
https://github.com/2dust/v2rayN.git
synced 2025-08-31 15:26:20 +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(() =>
|
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);
|
||||||
|
|
Loading…
Reference in a new issue