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
This commit is contained in:
psychon
2007-11-03 19:52:27 +00:00
parent babc0f9f8b
commit 2503cd9d37
+3 -2
View File
@@ -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<CCron *> & vCrons = (*this)[a]->GetCrons();
for( u_long b = 0; b < vCrons.size(); b++ )