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();
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch { }
|
||||
try
|
||||
{
|
||||
_process.CancelErrorRead();
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
try
|
||||
|
@ -109,19 +103,13 @@ public class ProcessService : IDisposable
|
|||
_process.Kill(true);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch { }
|
||||
|
||||
try
|
||||
{
|
||||
_process.Kill();
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
catch { }
|
||||
|
||||
await Task.Delay(100);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue