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:
Axel Dörfler 2005-12-12 13:50:34 +00:00
parent 1b974d07ee
commit 706fb459d5
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}