summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 17:34:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-07 17:34:02 +0000
commit7d19db88b580f0c488b3808aeb812d0d7403b25d (patch)
tree0839b61f0f50d7d43a531d77cd77176969b98cde /src/socket.cpp
parent53f280ed2ec0fdcac4e0e60f5d2566ae9f701a97 (diff)
Exception to the rules for EAGAIN
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3519 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 4b139c7f5..d28122b73 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -280,7 +280,7 @@ bool InspSocket::FlushWriteBuffer()
Buffer = n;
}
}
- else if (result == -1)
+ else if ((result == -1) && (errno != EAGAIN))
{
log(DEBUG,"Write error on socket: %s",strerror(errno));
this->OnError(I_ERR_WRITE);