Take recv buffer into account in HasData().

This commit is contained in:
Bartosz Taudul 2018-07-15 19:52:22 +02:00
parent ea4470b26e
commit efdb3791e9

View File

@ -224,6 +224,8 @@ bool Socket::Read( void* _buf, int len, const timeval* tv, std::function<bool()>
bool Socket::HasData()
{
if( m_bufLeft > 0 ) return true;
struct timeval tv;
memset( &tv, 0, sizeof( tv ) );