Also don't print error on B_BAD_PORT_ID in BMediaNode::WaitForMessage(),

it just means the port has been deleted while the node was waiting, like
when a program quits.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24502 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-03-21 13:02:01 +00:00
parent 6b8545a4fe
commit e339f8165b

View File

@ -367,10 +367,11 @@ BMediaNode::WaitForMessage(bigtime_t waitUntil,
ssize_t size = read_port_etc(ControlPort(), &message, data, sizeof(data),
B_ABSOLUTE_TIMEOUT, waitUntil);
if (size < 0) {
if ((status_t)size != B_TIMED_OUT)
status_t error = (status_t)size;
if (error != B_TIMED_OUT && error != B_BAD_PORT_ID)
ERROR("BMediaNode::WaitForMessage: read_port_etc error: %s\n",
strerror((status_t)size));
return (status_t)size;
strerror(error));
return error;
}
TRACE("BMediaNode::WaitForMessage request is: %#lx, node %ld, this %p\n",