From 723c8b8b3bf642770f26756c75bb5583e77a9cf3 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 22 Dec 2013 13:42:39 +0100 Subject: [PATCH] Fixed smooth CPU problems more properly. Yes, you read that right. --- src/connectors/conn_http_smooth.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/connectors/conn_http_smooth.cpp b/src/connectors/conn_http_smooth.cpp index 9f0b8a10..359ff842 100644 --- a/src/connectors/conn_http_smooth.cpp +++ b/src/connectors/conn_http_smooth.cpp @@ -485,8 +485,10 @@ namespace Connector_HTTP { Util::sleep(250); } }else{ - //Wait 250ms before checking for new data. - Util::sleep(250); + if (!ready4data){ + //Wait 250ms before checking for new data. + Util::sleep(250); + } } if (ready4data){ unsigned int now = Util::epoch();