예제 #1
0
 public void Stop()
 {
     if (stopped)
     {
         return;
     }
     stopped = true;
     _listener?.Stop();
     privoxyRunner?.Stop();
     if (_config.enabled)
     {
         SystemProxy.Update(_config, true, null);
     }
 }
예제 #2
0
 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;
         }
     }
 }
예제 #4
0
 private void UpdateSystemProxy()
 {
     SystemProxy.Update(_config, false, _pacServer);
 }