mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Take recv buffer into account in HasData().
This commit is contained in:
parent
ea4470b26e
commit
efdb3791e9
@ -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 ) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user