Skip to content
Snippets Groups Projects
Commit b3e5fabd authored by Fabian Paus's avatar Fabian Paus
Browse files

Fix error where end_ was called twice

parent b7de303b
No related branches found
No related tags found
No related merge requests found
......@@ -225,6 +225,7 @@ namespace armarx
auto layerIDsBefore = getLayerIDs();
LayerUpdates pulledUpdates = storage->end_pullUpdatesSince(pullUpdateResult);
pullUpdateResult = nullptr;
for (LayerUpdate const& update : pulledUpdates.updates)
{
apply(update);
......@@ -252,6 +253,7 @@ namespace armarx
storage = nullptr;
updateCounter = 0;
state = CoinVisualizerState::STOPPED;
pullUpdateResult = nullptr;
return;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment