catch exception when trying to kill polipo

This commit is contained in:
clowwindy
2014-11-08 21:51:08 +08:00
parent 22a7457c3a
commit c76ffce3ab
@@ -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;