Browse Source

better way to kill privoxy

tags/3.2
Gang Zhuo 9 years ago
parent
commit
3da00178de
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      shadowsocks-csharp/Controller/Service/PolipoRunner.cs

+ 7
- 2
shadowsocks-csharp/Controller/Service/PolipoRunner.cs View File

@@ -49,8 +49,13 @@ namespace Shadowsocks.Controller
{ {
try try
{ {
p.Kill();
p.WaitForExit();
p.CloseMainWindow();
p.WaitForExit(100);
if (!p.HasExited)
{
p.Kill();
p.WaitForExit();
}
} }
catch (Exception e) catch (Exception e)
{ {


Loading…
Cancel
Save