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:
@@ -104,7 +104,8 @@ LinkReceiver::GetNextMessage(int32 &code, bigtime_t timeout)
|
|||||||
bool
|
bool
|
||||||
LinkReceiver::HasMessages() const
|
LinkReceiver::HasMessages() const
|
||||||
{
|
{
|
||||||
return port_count(fReceivePort) > 0;
|
return fDataSize - (fRecvStart + fReplySize) > 0
|
||||||
|
|| port_count(fReceivePort) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user