Handled interrupted Exception
[appc.git] / appc-event-listener / appc-event-listener-bundle / src / main / java / org / onap / appc / listener / AbstractListener.java
index 2b6fea9..b9e8a6c 100644 (file)
@@ -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
@@ -93,6 +95,7 @@ public abstract class AbstractListener implements Listener {
             executor.awaitTermination(10, TimeUnit.SECONDS);
         } catch (InterruptedException e) {
             LOG.error("Listener graceful stop() failed", e);
+            Thread.currentThread().interrupt();
         }
         
         // close DMaaP clients