mirror of https://github.com/2dust/v2rayN
Update StatisticsHandler.cs
如果调用kill的时候进程已经退出,就会导致v2rayN程序无法退出,先判断该进程是否已经退出再kill,修复该问题pull/39/head
parent
83e7ad9360
commit
26c9cd4d27
|
@ -96,7 +96,10 @@ namespace v2rayN.Handler
|
|||
public void Close()
|
||||
{
|
||||
exitFlag_ = true;
|
||||
connector_.Kill();
|
||||
if (!connector_.HasExited)
|
||||
{
|
||||
connector_.Kill();
|
||||
}
|
||||
}
|
||||
|
||||
public void run()
|
||||
|
|
Loading…
Reference in New Issue