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

View File

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

View File

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