mirror of
https://github.com/2dust/v2rayN.git
synced 2025-10-13 11:59:13 +00:00
Bug fix
This commit is contained in:
parent
5b12c36da5
commit
12cc09d0c9
1 changed files with 4 additions and 16 deletions
|
@ -88,18 +88,12 @@ public class ProcessService : IDisposable
|
||||||
{
|
{
|
||||||
_process.CancelOutputRead();
|
_process.CancelOutputRead();
|
||||||
}
|
}
|
||||||
catch
|
catch { }
|
||||||
{
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_process.CancelErrorRead();
|
_process.CancelErrorRead();
|
||||||
}
|
}
|
||||||
catch
|
catch { }
|
||||||
{
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -109,19 +103,13 @@ public class ProcessService : IDisposable
|
||||||
_process.Kill(true);
|
_process.Kill(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch { }
|
||||||
{
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_process.Kill();
|
_process.Kill();
|
||||||
}
|
}
|
||||||
catch
|
catch { }
|
||||||
{
|
|
||||||
throw;
|
|
||||||
}
|
|
||||||
|
|
||||||
await Task.Delay(100);
|
await Task.Delay(100);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue