1
0

WebServer: socket fix (force-terminated socket would cause the server to loop indefinitely)

git-svn-id: http://mc-server.googlecode.com/svn/trunk@226 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-02-02 14:12:59 +00:00
parent 99e8f1808c
commit d43a81bae0

View File

@ -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 )
{}
}