diff --git a/sdk/main/src/Client.cc b/sdk/main/src/Client.cc index 58c79c1de..a8b52a03d 100644 --- a/sdk/main/src/Client.cc +++ b/sdk/main/src/Client.cc @@ -209,7 +209,7 @@ void Client::close() //----- Client& Client::setNetwork(const std::unordered_map& networkMap) { - mImpl->mNetwork = internal::Network::forNetwork(networkMap); + mImpl->mNetwork = std::make_shared(internal::Network::forNetwork(networkMap)); mImpl->mMirrorNetwork = nullptr; return *this; }