Solve deadlock
[bgpcep.git] / pcep / impl / src / main / java / org / opendaylight / protocol / pcep / impl / PCEPSessionImpl.java
index 5c9107cb8e948e66cca3b49b3f31319d3e430ff8..ca92eb2f305cc2d660e687348a70b004c371c06d 100644 (file)
@@ -237,7 +237,7 @@ public class PCEPSessionImpl extends SimpleChannelInboundHandler<Message> implem
      * inside the session or from the listener, therefore the parent of this session should be informed.
      */
     @Override
-    public synchronized void close(final TerminationReason reason) {
+    public void close(final TerminationReason reason) {
         if (this.closed.getAndSet(true)) {
             LOG.debug("Session is already closed.");
             return;