diff options
| author | 2007-10-21 19:40:44 +0000 | |
|---|---|---|
| committer | 2007-10-21 19:40:44 +0000 | |
| commit | 1bc59c5193e08253df19971bfae0bcb0f24bc590 (patch) | |
| tree | b1f3c1a19e4f686aeec84876deb686d1c3ace1bf /src/modules | |
| parent | Roll back to 1.1.12 socket engine as a test (diff) | |
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/branches/1_1_stable@8275 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_ident.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 29a7f6c73..dbd38563c 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -198,8 +198,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 @@ -209,10 +207,13 @@ class IdentRequestSocket : public EventHandler /* Cant possibly be a valid response shorter than 3 chars */ 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++) |
