From 036b3c9053d663b0714690db33161e2df9e76782 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 29 Apr 2011 18:03:04 -0400 Subject: Temporary fix for /os restart with m_async_commands loaded, is fixed properly in 1.9.5 --- src/sockets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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()) -- cgit