inspircd

A modular C++ IRC daemon (ircd). https://www.inspircd.org/
Log | Files | Refs | README

commit 1a157c1e5c45f627da6f964419bd849a75dbdfe1
parent 5dda6401e5f7ed7479454b372fbee07f94047fcf
Author: Peter Powell <petpow@saberuk.com>
Date:   Tue, 14 May 2019 15:51:25 +0100

Resize the event sets to 2x the CurrentSetSize in ResizeDouble().

Diffstat:
Minclude/socketengine.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/socketengine.h b/include/socketengine.h @@ -298,7 +298,7 @@ class CoreExport SocketEngine static void ResizeDouble(std::vector<T>& vect) { if (SocketEngine::CurrentSetSize > vect.size()) - vect.resize(vect.size() * 2); + vect.resize(SocketEngine::CurrentSetSize * 2); } public: