From 2503cd9d37579e078a98896ee9e2e4c87e3dcb6c Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 3 Nov 2007 19:52:27 +0000 Subject: [PATCH] Update Csocket (I feel like half my commits start like this -.-) DynamicSelectLoop had a bug causing it to always use the lower bound making it effectively useless. Now it's useful again :) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@859 726aef4b-f618-498e-8847-2d620e286838 --- Csocket.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Csocket.h b/Csocket.h index 110c41bb..686d4a8b 100644 --- a/Csocket.h +++ b/Csocket.h @@ -28,7 +28,7 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * -* $Revision: 1.175 $ +* $Revision: 1.176 $ */ // note to compile with win32 need to link to winsock2, using gcc its -lws2_32 @@ -2132,8 +2132,9 @@ private: iTimeoutInSeconds = 0; else iTimeoutInSeconds -= iDiff; + + iMinTimeout = std::min( iMinTimeout, iTimeoutInSeconds ); } - iMinTimeout = std::min( iMinTimeout, iTimeoutInSeconds ); const std::vector & vCrons = (*this)[a]->GetCrons(); for( u_long b = 0; b < vCrons.size(); b++ )