mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +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()
|
bool Socket::HasData()
|
||||||
{
|
{
|
||||||
|
if( m_bufLeft > 0 ) return true;
|
||||||
|
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
memset( &tv, 0, sizeof( tv ) );
|
memset( &tv, 0, sizeof( tv ) );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user