We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d9579c commit 2cac88cCopy full SHA for 2cac88c
src/viam/sdk/module/service.cpp
@@ -115,6 +115,7 @@ struct ModuleService::ServiceImpl : viam::module::v1::ModuleService::Service {
115
Registry::get().lookup_model(cfg.name());
116
if (reg) {
117
try {
118
+ res->close();
119
const std::shared_ptr<Resource> res = reg->construct_resource(deps, cfg);
120
manager->replace_one(cfg.resource_name(), res);
121
} catch (const std::exception& exc) {
0 commit comments