mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-15 12:48:07 +00:00
Update StatisticsHandler.cs
如果调用kill的时候进程已经退出,就会导致v2rayN程序无法退出,先判断该进程是否已经退出再kill,修复该问题
This commit is contained in:
parent
83e7ad9360
commit
26c9cd4d27
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue