From 390f730f2575dd70e5389c3cd34ff76cda892b42 Mon Sep 17 00:00:00 2001
From: "fabian.peller-konrad@kit.edu" <fabian.peller-konrad@kit.edu>
Date: Tue, 18 May 2021 11:52:29 +0200
Subject: [PATCH] infinite loop in example memory client

---
 .../armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp b/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp
index b7e4ba4ca..0d68747a5 100644
--- a/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp
+++ b/source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp
@@ -136,9 +136,9 @@ namespace armarx
             queryExampleData();
         }
 
-        CycleUtil c(1000);
+        CycleUtil c(100);
         int i = 0;
-        while (!task->isStopped() && i++ < 100)
+        while (!task->isStopped())
         {
             commitSingleSnapshot(entityID);
             c.waitForCycleDuration();
-- 
GitLab