Fix minor oversight in previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42074 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -247,8 +247,10 @@ BMessenger::LockTargetWithTimeout(bigtime_t timeout) const
|
|||||||
if (error == B_OK)
|
if (error == B_OK)
|
||||||
error = looper->LockWithTimeout(timeout);
|
error = looper->LockWithTimeout(timeout);
|
||||||
|
|
||||||
if (error == B_OK && looper->fMsgPort != fPort)
|
if (error == B_OK && looper->fMsgPort != fPort) {
|
||||||
|
looper->Unlock();
|
||||||
return B_BAD_PORT_ID;
|
return B_BAD_PORT_ID;
|
||||||
|
}
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user