From ae4c387422251da208c4b5492a9ebe72d524805e Mon Sep 17 00:00:00 2001 From: danieldg Date: Fri, 9 Oct 2009 21:31:50 +0000 Subject: Move autoconnect next-server to TreeSocket::cull, and drop autoconnect reference once a connection is complete git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11811 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspsocket.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/inspsocket.cpp') diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 60c69559d..73f469a05 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -441,6 +441,8 @@ BufferedSocket::~BufferedSocket() void StreamSocket::HandleEvent(EventType et, int errornum) { + if (!error.empty()) + return; BufferedSocketError errcode = I_ERR_OTHER; switch (et) { -- cgit v1.2.3