From 5bdd4a416e964ae0cfcc56d99c062691d1b3931d Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 14 Jul 2022 10:45:53 +0200 Subject: [PATCH] Fix load balancer CPU usage --- src/input/input_balancer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/input_balancer.cpp b/src/input/input_balancer.cpp index 448e6eff..36db5709 100644 --- a/src/input/input_balancer.cpp +++ b/src/input/input_balancer.cpp @@ -140,6 +140,9 @@ namespace Mist{ startTime = 0; // note success break; // break out of while loop } + }else{ + //Prevent 100% CPU usage if the response is slow + Util::sleep(25); } } if (startTime){