From 87aa57e88e6f322d8830842209636766c5464391 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 9 Jun 2011 19:32:14 +0000 Subject: [PATCH] Fix minor oversight in previous commit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42074 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/app/Messenger.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/kits/app/Messenger.cpp b/src/kits/app/Messenger.cpp index f5e0c20c53..b36fec35a1 100644 --- a/src/kits/app/Messenger.cpp +++ b/src/kits/app/Messenger.cpp @@ -247,8 +247,10 @@ BMessenger::LockTargetWithTimeout(bigtime_t timeout) const if (error == B_OK) 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 error; }