Update CoreHandler.cs

This commit is contained in:
sshcomm 2025-01-21 20:39:03 +03:30 committed by GitHub
parent 00488ca6ce
commit 14ed17741d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Diagnostics;
using System.Text;
namespace ServiceLib.Handler
@ -82,7 +82,12 @@ namespace ServiceLib.Handler
UpdateFunc(false, $"{Utils.GetRuntimeInfo()}");
UpdateFunc(false, string.Format(ResUI.StartService, DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")));
await CoreStop();
await Task.Delay(100);
// if (_config.TunModeItem.EnableTun)
// {
await Task.Delay(1000);
Utils.RemoveTunDevice();
// }
await Task.Delay(1000);
await CoreStart(node);
await CoreStartPreService(node);
if (_process != null)
@ -368,4 +373,4 @@ namespace ServiceLib.Handler
#endregion Linux
}
}
}