mirror of https://github.com/2dust/v2rayN
Improve remove Application.Current.Shutdown
parent
ae6f2b6df6
commit
3871681de3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue