diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-26 23:43:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-26 23:43:40 +0000 |
commit | 181f534ea48812439c8f3c2bc8ef68c4bd2da0cc (patch) | |
tree | 315416393194e198c43644c422cb8106b41a5d7b /src/modules | |
parent | b7c16f1ebc0809bb9f85573a37c6bb11f6854aca (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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) |