diff --git a/shadowsocks-csharp/Controller/PolipoRunner.cs b/shadowsocks-csharp/Controller/PolipoRunner.cs index 48ee3471..1f9802cf 100755 --- a/shadowsocks-csharp/Controller/PolipoRunner.cs +++ b/shadowsocks-csharp/Controller/PolipoRunner.cs @@ -20,8 +20,15 @@ namespace Shadowsocks.Controller Process[] existingPolipo = Process.GetProcessesByName("ss_polipo"); foreach (Process p in existingPolipo) { - p.Kill(); - p.WaitForExit(); + try + { + p.Kill(); + p.WaitForExit(); + } + catch (Exception e) + { + Console.WriteLine(e.ToString()); + } } string temppath = Path.GetTempPath(); string polipoConfig = Resources.polipo_config;