]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Ignore EAGAIN when write()ing
[user/henk/code/inspircd.git] / src / users.cpp
index 42816932f5f012b7e20c79d363ae9131d388de88..249b789e9d83c552b6ef616a470aaa4c49e9f232 100644 (file)
@@ -416,7 +416,8 @@ void userrec::FlushWriteBuf()
                int n_sent = write(this->fd,tb,this->sendq.length());
                if (n_sent == -1)
                {
-                       this->SetWriteError(strerror(errno));
+                       if (errno != EAGAIN)
+                               this->SetWriteError(strerror(errno));
                }
                else
                {