Solve deadlock 55/77555/1
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Tue, 6 Nov 2018 12:26:37 +0000 (13:26 +0100)
committerClaudio David Gasparini <claudio.gasparini@pantheon.tech>
Tue, 6 Nov 2018 17:28:33 +0000 (17:28 +0000)
JIRA: BGPCEP-841
Change-Id: I9daaa786e9d1b1cf7aa74141d346f1bd86b36452
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
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;