summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcamera/thread.cpp b/src/libcamera/thread.cpp
index 029a0e8f..18ebd16a 100644
--- a/src/libcamera/thread.cpp
+++ b/src/libcamera/thread.cpp
@@ -439,11 +439,11 @@ void Thread::dispatchMessages()
Object *receiver = msg->receiver_;
ASSERT(data_ == receiver->thread()->data_);
+ receiver->pendingMessages_--;
+
locker.unlock();
receiver->message(msg.get());
locker.lock();
-
- receiver->pendingMessages_--;
}
}