diff options
Diffstat (limited to 'appc-adapters/appc-iaas-adapter')
-rw-r--r-- | appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/RequestContext.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/RequestContext.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/RequestContext.java index 8c2833dfc..5cea9c003 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/RequestContext.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/RequestContext.java @@ -125,6 +125,7 @@ public class RequestContext { * amount of delay time needed and reenter the sleep until we get to the future time. */ time = future - System.currentTimeMillis(); + Thread.currentThread().interrupt(); } } } @@ -193,7 +194,7 @@ public class RequestContext { } accumulatedTime += (now - startTime); startTime = now; - return !(accumulatedTime > timeToLive); + return accumulatedTime <= timeToLive; } /** |