Improve remove Application.Current.Shutdown

pull/4917/head
2dust 2024-03-26 14:22:53 +08:00
parent ae6f2b6df6
commit 3871681de3
1 changed files with 0 additions and 2 deletions

View File

@ -34,7 +34,6 @@ namespace v2rayN
if (!rebootas && !bCreatedNew)
{
ProgramStarted.Set();
Current.Shutdown();
Environment.Exit(0);
return;
}
@ -55,7 +54,6 @@ namespace v2rayN
if (ConfigHandler.LoadConfig(ref _config) != 0)
{
UI.Show($"Loading GUI configuration file is abnormal,please restart the application{Environment.NewLine}加载GUI配置文件异常,请重启应用");
Application.Current.Shutdown();
Environment.Exit(0);
return;
}