public void Stop() { if (_v2rayProcess != null) { _v2rayProcess.Kill(); _v2rayProcess.WaitForExit(); _v2rayProcess = null; } if (stopped) { return; } stopped = true; if (_listener != null) { _listener.Stop(); } if (polipoRunner != null) { polipoRunner.Stop(); } if (_config.enabled) { SystemProxy.Update(_config, true); } }
public void Stop() { if (stopped) { return; } stopped = true; local.Stop(); polipoRunner.Stop(); if (_config.enabled) { SystemProxy.Disable(); } }
public void Stop() { if (stopped) { return; } stopped = true; if (_listener != null) { _listener.Stop(); } if (polipoRunner != null) { polipoRunner.Stop(); } if (_config.enabled) { SystemProxy.Update(_config, true); } }
public void Stop() { if (stopped) { return; } stopped = true; if (local != null) { local.Stop(); } if (polipoRunner != null) { polipoRunner.Stop(); } if (_config.enabled) { SystemProxy.Disable(); } }