From fb8e61e161422acfa095215ed1237727e5a9f5f9 Mon Sep 17 00:00:00 2001 From: Sergey Svistunov Date: Sat, 13 Mar 2021 09:08:08 +0300 Subject: [PATCH] Fixed high CU usage if authentication failed --- KeeneticPlugin.cpp | 1 + KeeneticPlugin.rc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/KeeneticPlugin.cpp b/KeeneticPlugin.cpp index 5720d86..4e34bac 100644 --- a/KeeneticPlugin.cpp +++ b/KeeneticPlugin.cpp @@ -83,6 +83,7 @@ class Worker while (!stopSignal) { if (!authenticated) { if (!authenticate()) { + Sleep(1000); continue; } } diff --git a/KeeneticPlugin.rc b/KeeneticPlugin.rc index a61cf9d..c68942c 100644 --- a/KeeneticPlugin.rc +++ b/KeeneticPlugin.rc @@ -8,7 +8,7 @@ // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,0,2,0 + FILEVERSION 1,0,3,0 PRODUCTVERSION 3,0,2,2161 FILEFLAGSMASK 0x17L #ifdef _DEBUG @@ -24,7 +24,7 @@ BEGIN BEGIN BLOCK "040904E4" BEGIN - VALUE "FileVersion", "1.0.2.0" + VALUE "FileVersion", "1.0.3.0" VALUE "LegalCopyright", "© 2021 - Sergey Svistunov" // Don't change the entries below!