SDK: Do not always stop the session on destruction

This commit is contained in:
Dennis Klein
2019-07-19 20:54:44 +02:00
committed by Dennis Klein
parent 7aa95fcd93
commit 5a7bf68c8c
3 changed files with 7 additions and 6 deletions

View File

@@ -76,10 +76,6 @@ struct DDSSession::Impl
}
}
~Impl()
{
fSession.shutdown();
}
struct Tag {};
friend auto operator<<(std::ostream& os, Tag) -> std::ostream& { return os << "DDSSession"; }
tools::InstanceLimiter<Tag, 1> fCount;
@@ -103,6 +99,8 @@ auto DDSSession::IsRunning() const -> bool { return fImpl->fSession.IsRunning();
auto DDSSession::GetId() const -> Id { return fImpl->fId; }
auto DDSSession::Stop() -> void { return fImpl->fSession.shutdown(); }
auto DDSSession::GetDefaultPlugin() const -> DDSRMSPlugin { return fImpl->fDefaultPlugin; }
auto DDSSession::SubmitAgents(Quantity agents) -> void