summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_rs/ftnoir_tracker_rs.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/ftnoir_tracker_rs/ftnoir_tracker_rs.cpp b/ftnoir_tracker_rs/ftnoir_tracker_rs.cpp
index 12330fd2..f17d7fcb 100644
--- a/ftnoir_tracker_rs/ftnoir_tracker_rs.cpp
+++ b/ftnoir_tracker_rs/ftnoir_tracker_rs.cpp
@@ -50,10 +50,8 @@ void RSTracker::readPendingUdpPoseData(){
while(mSocket.hasPendingDatagrams()) {
mSocket.readDatagram((char*)pose, sizeof(pose));
- {
- QMutexLocker foo(&mMutex);
- memcpy(mPose, pose, sizeof(pose));
- }
+ QMutexLocker foo(&mMutex);
+ memcpy(mPose, pose, sizeof(pose));
}
}