commit | 5c7d488269ffc21681329e987c80f53201dd874b | [log] [tgz] |
---|---|---|
author | Ray Milkey <ray@opennetworking.org> | Mon Feb 05 14:50:39 2018 -0800 |
committer | Ray Milkey <ray@opennetworking.org> | Wed Feb 07 00:59:07 2018 +0000 |
tree | 70ca4d24e126852b6875c1309aa21610e1eaef8d | |
parent | 46c5eaa7c5fdf76fccaf9b9351bca0c60da22bb9 [diff] [blame] |
SONAR suggestion - proper handling of InterruptedException Change-Id: I67a93c064708c207d9ce83fac319682c2d17db60
diff --git a/incubator/protobuf/registry/src/main/java/org/onosproject/protobuf/registry/GrpcServiceRegistryImpl.java b/incubator/protobuf/registry/src/main/java/org/onosproject/protobuf/registry/GrpcServiceRegistryImpl.java index ada1253..2c2d864 100644 --- a/incubator/protobuf/registry/src/main/java/org/onosproject/protobuf/registry/GrpcServiceRegistryImpl.java +++ b/incubator/protobuf/registry/src/main/java/org/onosproject/protobuf/registry/GrpcServiceRegistryImpl.java
@@ -151,6 +151,7 @@ } catch (InterruptedException e) { log.error("Awaiting server termination failed with error {}", e.getMessage()); + Thread.currentThread().interrupt(); } if (!server.isTerminated()) { server.shutdownNow(); @@ -159,6 +160,7 @@ } catch (InterruptedException e) { log.error("Server failed to terminate as expected with error" + " {}", e.getMessage()); + Thread.currentThread().interrupt(); } } return server.isTerminated();