diff options
author | Adam <Adam@anope.org> | 2011-04-29 18:03:04 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-04-29 18:03:04 -0400 |
commit | 036b3c9053d663b0714690db33161e2df9e76782 (patch) | |
tree | 867e85a3241b3618911e8dd7e1d8fc5b1bd0c150 /src/sockets.cpp | |
parent | 7da33344d10f4323d9811c68398fe8bb836979b1 (diff) |
Temporary fix for /os restart with m_async_commands loaded, is fixed properly in 1.9.5
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r-- | src/sockets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index 3f334e26e..cdf713f81 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -522,7 +522,7 @@ bool BufferedSocket::ProcessWrite() if (this->WriteBuffer.empty()) return true; int count = this->IO->Send(this, this->WriteBuffer); - if (count == -1) + if (count <= -1) return false; this->WriteBuffer = this->WriteBuffer.substr(count); if (this->WriteBuffer.empty()) |