Skip to content

Commit 52eab57

Browse files
committed
thread pool does not get shared_ptr
1 parent f1cd2f3 commit 52eab57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viam/sdk/robot/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ std::shared_ptr<RobotClient> RobotClient::with_channel(ViamChannel channel,
275275
robot->refresh_interval_ = options.refresh_interval();
276276
robot->should_refresh_ = (robot->refresh_interval_ > 0);
277277
if (robot->should_refresh_) {
278-
robot->threads_.emplace_back(&RobotClient::refresh_every, robot);
278+
robot->threads_.emplace_back(&RobotClient::refresh_every, robot.get());
279279
}
280280

281281
robot->refresh();

0 commit comments

Comments
 (0)