summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-02 15:12:59 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-02 15:12:59 +0100
commitd43a81bae0db49655e6ffaf7a08fd823d74d86b2 (patch)
treef345054bcee8b5be9200dd46385f6fdf49125dfa
parenttolua: modified the binding generator to accept AString as a std::string synonym, re-generated Bindings with these settings. Lua callbacks can now safely use AString functions in C++. (diff)
downloadcuberite-d43a81bae0db49655e6ffaf7a08fd823d74d86b2.tar
cuberite-d43a81bae0db49655e6ffaf7a08fd823d74d86b2.tar.gz
cuberite-d43a81bae0db49655e6ffaf7a08fd823d74d86b2.tar.bz2
cuberite-d43a81bae0db49655e6ffaf7a08fd823d74d86b2.tar.lz
cuberite-d43a81bae0db49655e6ffaf7a08fd823d74d86b2.tar.xz
cuberite-d43a81bae0db49655e6ffaf7a08fd823d74d86b2.tar.zst
cuberite-d43a81bae0db49655e6ffaf7a08fd823d74d86b2.zip
Diffstat (limited to '')
-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 )
{}
}