From f561b32be27117fa16f7123adfd4e767e9e17561 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 19:41:34 +0000 Subject: Minor tweak to avoid a storm of redundant read events. This isnt the fix, i dont think, but its needed anyway git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8276 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 9a3c595a6..144a3bb53 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -270,8 +270,6 @@ class IdentRequestSocket : public EventHandler void ReadResponse() { - ServerInstance->Log(DEBUG,"ReadResponse()"); - /* We don't really need to buffer for incomplete replies here, since IDENT replies are * extremely short - there is *no* sane reason it'd be in more than one packet */ @@ -283,10 +281,13 @@ class IdentRequestSocket : public EventHandler */ if (recvresult < 3) { + Close(); done = true; return; } + ServerInstance->Log(DEBUG,"ReadResponse()"); + irc::sepstream sep(ibuf, ':'); std::string token; for (int i = 0; sep.GetToken(token); i++) -- cgit v1.2.3