Attempt to fix a bug in SGSocket::read() affecting TCP style sockets.

This commit is contained in:
curt 2003-11-27 13:24:26 +00:00
parent b1c688abe8
commit 5812571df4

View File

@ -218,7 +218,14 @@ SGSocket::read( char *buf, int length )
if (result > 0)
{
result = sock.recv( buf, length );
if (is_tcp)
{
result = client->recv( buf, length );
}
else
{
result = sock.recv( buf, length );
}
if ( result != length )
{