test: message: Fix message handling in MessageReceiver
Forward messages that we don't handle to the base Object class, to avoid both blocking the ThreadMove message and mistaking it as the test message. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -37,6 +37,11 @@ public:
|
||||
protected:
|
||||
void message(Message *msg)
|
||||
{
|
||||
if (msg->type() != Message::None) {
|
||||
Object::message(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
if (thread() != Thread::current())
|
||||
status_ = InvalidThread;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user