summaryrefslogtreecommitdiffstats
path: root/WebServer
diff options
context:
space:
mode:
Diffstat (limited to 'WebServer')
-rw-r--r--WebServer/Socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebServer/Socket.cpp b/WebServer/Socket.cpp
index 1e9af902f..1c48172ed 100644
--- a/WebServer/Socket.cpp
+++ b/WebServer/Socket.cpp
@@ -127,7 +127,7 @@ void Socket::Close( bool a_WaitSend /* = false */ )
{
assert( shutdown(s_, SD_SEND ) == 0 );
char c;
- while( recv(s_, &c, 1, 0 ) != 0 )
+ while( recv(s_, &c, 1, 0 ) > 0 )
{}
}