// limitations under the License.\r
\r
using System.Net.Sockets;\r
+using System.Threading;\r
using System.Threading.Tasks;\r
using System.Windows.Forms;\r
using Microsoft.Win32;\r
{\r
if (e.Mode != PowerModes.Resume || !_config.Proxy.Auto)\r
return;\r
- SystemProxy.Refresh();\r
+ Task.Run(() =>\r
+ {\r
+ for (var i = 0; i < 3; i++, Thread.Sleep(10000))\r
+ SystemProxy.Refresh();\r
+ });\r
}\r
\r
public void Shutdown()\r