summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTor Egge <tegge@oath.com>2019-01-04 22:46:37 +0000
committerTor Egge <tegge@oath.com>2019-01-04 22:46:37 +0000
commitbf259b78d94535822f4d02f96ca4d1788eb1c36b (patch)
tree60a5db1ee6f841877077da970b2e0f5520d61051 /config
parenta65854f318e3527c6b9acb6c24dc9416f3a53365 (diff)
Break ouf of loop in ConfigSubscriptionSet::acquireSnapshot() if there
is no time left.
Diffstat (limited to 'config')
-rw-r--r--config/src/vespa/config/subscription/configsubscriptionset.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/src/vespa/config/subscription/configsubscriptionset.cpp b/config/src/vespa/config/subscription/configsubscriptionset.cpp
index ab38ba18351..2bbc43f9b5b 100644
--- a/config/src/vespa/config/subscription/configsubscriptionset.cpp
+++ b/config/src/vespa/config/subscription/configsubscriptionset.cpp
@@ -76,6 +76,8 @@ ConfigSubscriptionSet::acquireSnapshot(uint64_t timeoutInMillis, bool ignoreChan
timeLeft = timeoutInMillis - static_cast<uint64_t>(timer.MilliSecsToNow());
if (!inSync && timeLeft > 0) {
std::this_thread::sleep_for(10ms);
+ } else {
+ break;
}
}