From 181f534ea48812439c8f3c2bc8ef68c4bd2da0cc Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Feb 2006 23:43:40 +0000 Subject: Put the EAGAIN stuff back now we're done testing git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3358 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index a28ce44cf..636d7e895 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -1397,7 +1397,6 @@ class TreeSocket : public InspSocket /* Check that the data read is a valid pointer and it has some content */ if (data && *data) { - log(DEBUG,"got some data"); this->in_buffer.append(data); /* While there is at least one new line in the buffer, * do something useful (we hope!) with it. @@ -1448,7 +1447,7 @@ class TreeSocket : public InspSocket /* EAGAIN returns an empty but non-NULL string, so this * evaluates to TRUE for EAGAIN but to FALSE for EOF. */ - return false; + return (data && !*data); } int WriteLine(std::string line) -- cgit v1.2.3