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 712a3bb commit ad96dcbCopy full SHA for ad96dcb
olp-cpp-sdk-dataservice-read/src/ApiClientLookup.cpp
@@ -66,7 +66,7 @@ ApiClientLookup::ApiClientResponse ApiClientLookup::LookupApi(
66
std::unique_lock<repository::NamedMutex> lock(mutex, std::adopt_lock);
67
68
// If we are not planning to go online or access the cache, release the lock.
69
- if (options != CacheOnly || options != OnlineOnly) {
+ if (options != CacheOnly && options != OnlineOnly) {
70
mutex.lock();
71
}
72
0 commit comments