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:
parent
f88e756cea
commit
1f6342f46b
1 changed files with 5 additions and 0 deletions
|
@ -37,6 +37,11 @@ public:
|
||||||
protected:
|
protected:
|
||||||
void message(Message *msg)
|
void message(Message *msg)
|
||||||
{
|
{
|
||||||
|
if (msg->type() != Message::None) {
|
||||||
|
Object::message(msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (thread() != Thread::current())
|
if (thread() != Thread::current())
|
||||||
status_ = InvalidThread;
|
status_ = InvalidThread;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue