From 6d5a6aeeabfc976bd0e5aff7f9445982774275ab Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 12 Nov 2009 15:38:07 +0000 Subject: Fix double-cull of users quitting due to connection error git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12105 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_httpd.cpp | 1 + src/modules/m_spanningtree/treesocket1.cpp | 1 + 2 files changed, 2 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index 4d5bf38ee..b453a2805 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -60,6 +60,7 @@ class HttpServerSocket : public BufferedSocket virtual void OnError(BufferedSocketError) { + ServerInstance->GlobalCulls.AddItem(this); } std::string Response(int response) diff --git a/src/modules/m_spanningtree/treesocket1.cpp b/src/modules/m_spanningtree/treesocket1.cpp index fcd6871e1..e41b53583 100644 --- a/src/modules/m_spanningtree/treesocket1.cpp +++ b/src/modules/m_spanningtree/treesocket1.cpp @@ -149,6 +149,7 @@ void TreeSocket::OnError(BufferedSocketError e) { ServerInstance->SNO->WriteGlobalSno('l', "Connection to \002%s\002 failed with error: %s", myhost.c_str(), getError().c_str()); + ServerInstance->GlobalCulls.AddItem(this); } void TreeSocket::SendError(const std::string &errormessage) -- cgit v1.2.3