Skip to content

Commit 7198e15

Browse files
authored
const lock guard
1 parent a78291f commit 7198e15

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
@@ -144,7 +144,7 @@ RobotClient::~RobotClient() {
144144

145145
void RobotClient::close() {
146146
if (should_refresh_) {
147-
std::unique_lock<std::mutex> lk{refresh_lock_};
147+
const std::unique_lock<std::mutex> lk{refresh_lock_};
148148
should_refresh_ = false;
149149
refresh_cv_.notify_one();
150150
}

0 commit comments

Comments
 (0)