Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit da6a896

Browse files
authoredMay 21, 2025··
reset parent to prevent double close (#437)
1 parent 429dc0c commit da6a896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/viam/sdk/module/service.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ ModuleService::~ModuleService() {
260260

261261
if (parent_) {
262262
try {
263-
parent_->close();
263+
parent_.reset();
264264
} catch (const std::exception& exc) {
265265
VIAM_SDK_LOG(error) << exc.what();
266266
}

0 commit comments

Comments
 (0)
Please sign in to comment.