public void Stop() { if (stopped) { return; } stopped = true; _listener?.Stop(); privoxyRunner?.Stop(); if (_config.enabled) { SystemProxy.Update(_config, true, null); } }
public void Stop() { if (stopped) { return; } stopped = true; _listener?.Stop(); privoxyRunner?.Stop(); if (_config.enabled) { SystemProxy.Update(_config, true, null); } SaeaAwaitablePoolManager.Dispose(); StopTrafficStatistics(); }
private void UpdateSystemProxy() { if (_config.enabled) { SystemProxy.Update(_config, false, _pacServer); _systemProxyIsDirty = true; } else { // only switch it off if we have switched it on if (_systemProxyIsDirty) { SystemProxy.Update(_config, false, _pacServer); _systemProxyIsDirty = false; } } }
private void UpdateSystemProxy() { SystemProxy.Update(_config, false, _pacServer); }