From: Jegadeesh Babu Date: Wed, 27 Feb 2019 14:03:12 +0000 (+0530) Subject: Handled interrupted exception X-Git-Tag: 1.5.0~151 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F79262%2F1;p=appc.git Handled interrupted exception Sonar fix Issue-ID: APPC-1506 Change-Id: If1e6e2aee7a2345a8e228e9cd793d02aa6eb685e Signed-off-by: Jegadeesh Babu --- diff --git a/appc-client/client-lib/src/main/java/org/onap/appc/client/impl/core/TaskQueue.java b/appc-client/client-lib/src/main/java/org/onap/appc/client/impl/core/TaskQueue.java index dfceb179c..5ef7a5ef7 100644 --- a/appc-client/client-lib/src/main/java/org/onap/appc/client/impl/core/TaskQueue.java +++ b/appc-client/client-lib/src/main/java/org/onap/appc/client/impl/core/TaskQueue.java @@ -6,6 +6,8 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= + * Modifications Copyright (C) 2019 IBM + * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -50,6 +52,7 @@ class TaskQueue implements Runnable{ task.run(); } catch (InterruptedException e) { LOG.error("could not take task from queue", e); + Thread.currentThread().interrupt(); } catch (RuntimeException e) { LOG.error("could not run task", e); }