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:
parent
99e8f1808c
commit
d43a81bae0
@ -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 )
|
||||
{}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user