fixes crashes

pull/695/head
YFdyh000 2020-04-19 04:11:21 +08:00
parent dee4b19775
commit a822fa9766
3 changed files with 3 additions and 0 deletions

View File

@ -413,6 +413,7 @@ namespace v2rayN.Forms
{
autoLatencyRefreshTask = Task.Run(async delegate
{
if (!this.IsHandleCreated) return; // the GUI app is exiting.
await Task.Delay(2000);
this.Invoke((MethodInvoker)(delegate
{

View File

@ -303,6 +303,7 @@ namespace v2rayN.Handler
{
try
{
if (p.HasExited) return;
p.CloseMainWindow();
p.WaitForExit(100);
if (!p.HasExited)

View File

@ -138,6 +138,7 @@ namespace v2rayN.HttpProxyHandler
{
try
{
if (p.HasExited) return; // someting, while the GUI app is exiting.
p.CloseMainWindow();
p.WaitForExit(100);
if (!p.HasExited)