better way to kill privoxy

This commit is contained in:
Gang Zhuo
2016-03-03 21:49:40 -05:00
parent 4325b7f6f9
commit 3da00178de
@@ -49,8 +49,13 @@ namespace Shadowsocks.Controller
{
try
{
p.Kill();
p.WaitForExit();
p.CloseMainWindow();
p.WaitForExit(100);
if (!p.HasExited)
{
p.Kill();
p.WaitForExit();
}
}
catch (Exception e)
{