Skip to content

Commit 993e05e

Browse files
Artem ErmoshkinShfdis
authored andcommitted
deadlock fix
1 parent ad99752 commit 993e05e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

include/ydb-cpp-sdk/client/iam/common/generic_provider.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ class TGrpcIamCredentialsProvider : public ICredentialsProvider {
168168
}
169169
};
170170
auto facility = weakFacility.lock();
171-
auto self = weakSelf.lock();
172171

173172
try {
174173
if (facility) {
@@ -178,7 +177,7 @@ class TGrpcIamCredentialsProvider : public ICredentialsProvider {
178177
} catch (...) {
179178
}
180179

181-
if (self) {
180+
if (auto self = weakSelf.lock()) {
182181
std::lock_guard guard(self->Lock_);
183182
self->ResetContextImpl();
184183
}

0 commit comments

Comments
 (0)