BUG-2873 : Remove dependency protocol-framework on PCEP
[bgpcep.git] / pcep / testtool / src / test / java / org / opendaylight / protocol / pcep / testtool / SimpleSessionListener.java
index f655da86834859d3668c0313feaf8f30caf41990..e4630171126982023b6aa8dff6ed15f12a0ca02e 100644 (file)
@@ -42,7 +42,11 @@ public class SimpleSessionListener implements PCEPSessionListener {
     @Override
     public void onSessionDown(final PCEPSession session, final Exception e) {
         LOG.debug("Session down with cause : {} or exception: {}", e.getCause(), e, e);
-        session.close();
+        try {
+            session.close();
+        } catch (Exception ie) {
+            LOG.warn("Error closing session", ie);
+        }
     }
 
     @Override