Fixed a possible deadlock

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12576 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2005-05-06 07:47:17 +00:00
parent cd5920926b
commit c63a94c7e3

View File

@ -177,15 +177,13 @@ int32 RootLayer::WorkingThread(void *data)
for(;;)
{
err = messageQueue.GetNextReply(&code);
oneRootLayer->Lock();
if(err < B_OK)
{
if(err < B_OK) {
STRACE(("WorkingThread: messageQueue.GetNextReply failed\n"));
continue;
}
oneRootLayer->Lock();
switch(code)
{
// We don't need to do anything with these two, so just pass them