From c11ec1cd3867fc6759fadb8143df676406b3e3e7 Mon Sep 17 00:00:00 2001 From: danieldg Date: Wed, 9 Sep 2009 19:28:42 +0000 Subject: Fix invalid iterator in select socketengine, clean up its memory use a bit too git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11687 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/socketengines/socketengine_select.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/socketengines') diff --git a/include/socketengines/socketengine_select.h b/include/socketengines/socketengine_select.h index f50eb8d5d..a248e8a8e 100644 --- a/include/socketengines/socketengine_select.h +++ b/include/socketengines/socketengine_select.h @@ -33,10 +33,10 @@ class SelectEngine : public SocketEngine private: /** Because select() does not track an fd list for us between calls, we have one of our own */ - std::map fds; + std::set fds; /** List of writeable ones (WantWrite()) */ - bool* writeable; + std::vector writeable; /** The read set and write set, populated before each call to select(). */ fd_set wfdset, rfdset, errfdset; -- cgit v1.2.3