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:
@@ -367,10 +367,11 @@ BMediaNode::WaitForMessage(bigtime_t waitUntil,
|
|||||||
ssize_t size = read_port_etc(ControlPort(), &message, data, sizeof(data),
|
ssize_t size = read_port_etc(ControlPort(), &message, data, sizeof(data),
|
||||||
B_ABSOLUTE_TIMEOUT, waitUntil);
|
B_ABSOLUTE_TIMEOUT, waitUntil);
|
||||||
if (size < 0) {
|
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",
|
ERROR("BMediaNode::WaitForMessage: read_port_etc error: %s\n",
|
||||||
strerror((status_t)size));
|
strerror(error));
|
||||||
return (status_t)size;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
TRACE("BMediaNode::WaitForMessage request is: %#lx, node %ld, this %p\n",
|
TRACE("BMediaNode::WaitForMessage request is: %#lx, node %ld, this %p\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user