mirror of https://github.com/2dust/v2rayN
restart core
parent
59a9fc9a3d
commit
a1d579e1ec
|
@ -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>
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue