Attempt to fix a bug in SGSocket::read() affecting TCP style sockets.
This commit is contained in:
parent
b1c688abe8
commit
5812571df4
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user