diff --git a/shadowsocks-csharp/Controller/PolipoRunner.cs b/shadowsocks-csharp/Controller/PolipoRunner.cs index 96c04db8..48ee3471 100755 --- a/shadowsocks-csharp/Controller/PolipoRunner.cs +++ b/shadowsocks-csharp/Controller/PolipoRunner.cs @@ -47,9 +47,9 @@ namespace Shadowsocks.Controller { if (process != null) { - process.Kill(); try { + process.Kill(); process.WaitForExit(); } catch (InvalidOperationException)