Oops, remaining messages in the link should be taken into account as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15513 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1b974d07ee
commit
706fb459d5
@ -104,7 +104,8 @@ LinkReceiver::GetNextMessage(int32 &code, bigtime_t timeout)
|
||||
bool
|
||||
LinkReceiver::HasMessages() const
|
||||
{
|
||||
return port_count(fReceivePort) > 0;
|
||||
return fDataSize - (fRecvStart + fReplySize) > 0
|
||||
|| port_count(fReceivePort) > 0;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user