restart core

pull/354/head
2dust 2019-12-26 08:53:13 +08:00
parent 59a9fc9a3d
commit a1d579e1ec
3 changed files with 6 additions and 2 deletions

View File

@ -363,6 +363,8 @@ namespace v2rayN.Forms
/// </summary>
private void LoadV2ray()
{
tsbReload.Enabled = false;
if (Global.reloadV2ray)
{
ClearMsg();
@ -373,6 +375,8 @@ namespace v2rayN.Forms
statistics?.SaveToFile();
ChangePACButtonStatus(config.listenerType);
tsbReload.Enabled = true;
}
/// <summary>

View File

@ -221,7 +221,7 @@ namespace v2rayN.Handler
if (!p.HasExited)
{
p.Kill();
p.WaitForExit();
p.WaitForExit(100);
}
}
catch (Exception ex)

View File

@ -146,7 +146,7 @@ namespace v2rayN.HttpProxyHandler
if (!p.HasExited)
{
p.Kill();
p.WaitForExit();
p.WaitForExit(100);
}
}
catch (Exception ex)