Skip to content

Commit

Permalink
fix record topic (#1855)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Jan 6, 2023
1 parent cb0c35e commit 48af3f6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ServerPrivate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ void ServerPrivate::AddRecordPlugin(const ServerConfig &_config)
recordPluginElem->Get<std::string>("compress_path", "");
std::tie(sdfRecordResources, hasRecordResources) =
recordPluginElem->Get<bool>("record_resources", false);

hasRecordTopics = recordPluginElem->HasElement("record_topic");
if (hasRecordTopics)
{
Expand All @@ -258,9 +257,8 @@ void ServerPrivate::AddRecordPlugin(const ServerConfig &_config)
{
auto topic = recordTopicElem->Get<std::string>();
sdfRecordTopics.push_back(topic);
recordTopicElem = recordTopicElem->GetNextElement();
}

recordTopicElem = recordTopicElem->GetNextElement();
}

// Remove from SDF
Expand Down

0 comments on commit 48af3f6

Please sign in to comment.