From 6fb1e9935b92153b4e69ce089ad6a6e10ef3f744 Mon Sep 17 00:00:00 2001 From: Christian Dreher <c.dreher@kit.edu> Date: Wed, 25 Oct 2023 12:46:29 +0200 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- source/RobotAPI/libraries/armem/client/util/MemoryListener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/RobotAPI/libraries/armem/client/util/MemoryListener.cpp b/source/RobotAPI/libraries/armem/client/util/MemoryListener.cpp index b381759a9..cd25f0611 100644 --- a/source/RobotAPI/libraries/armem/client/util/MemoryListener.cpp +++ b/source/RobotAPI/libraries/armem/client/util/MemoryListener.cpp @@ -234,7 +234,7 @@ namespace armarx::armem::client::util callbacks.erase(handle.memoryID); // unsubscribe from memory topic if no remainig callback needs it - if (component && memoryRefCount[handle.memoryID.memoryName] == 0) + if (component and memoryRefCount[handle.memoryID.memoryName] == 0) { component->unsubscribeFromTopic(MakeMemoryTopicName(handle.memoryID)); } -- GitLab