diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 21:58:01 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-11-11 21:58:01 +0000 |
commit | d41820f19f704687b8ef15c47f38c558e6bf3cee (patch) | |
tree | a998abd985c733ea0071de0aff2a9c12a7beb7cd | |
parent | 58450cb2170ea7bab536961c7266cae8a9d295e9 (diff) |
Fix some dodgy destructor stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8588 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_http_client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index d96b8e59f..2010e3e47 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -92,7 +92,8 @@ class ModuleHTTPClient : public Module virtual ~ModuleHTTPClient() { for (HTTPList::iterator i = sockets.begin(); i != sockets.end(); i++) - delete *i; + (*i)->Close(); + ServerInstance->BufferedSocketCull(); } virtual Version GetVersion() |