Update CoreHandler.cs

This commit is contained in:
sshcomm 2025-01-31 03:03:14 +03:30 committed by GitHub
parent 4a32b2c814
commit 3934eb021b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,11 +82,11 @@ namespace ServiceLib.Handler
UpdateFunc(false, $"{Utils.GetRuntimeInfo()}"); UpdateFunc(false, $"{Utils.GetRuntimeInfo()}");
UpdateFunc(false, string.Format(ResUI.StartService, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"))); UpdateFunc(false, string.Format(ResUI.StartService, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")));
await CoreStop(); await CoreStop();
await Task.Delay(100); await Task.Delay(1000);
if (Utils.IsWindows() && _config.TunModeItem.EnableTun) if (Utils.IsWindows()
{ {
await Task.Delay(100); await Task.Delay(1000);
await WindowsUtils.RemoveTunDevice(); await WindowsUtils.RemoveTunDevice();
} }