diff --git a/ethereum/p2p/src/main/java/tech/pegasys/pantheon/ethereum/p2p/netty/ApiHandler.java b/ethereum/p2p/src/main/java/tech/pegasys/pantheon/ethereum/p2p/netty/ApiHandler.java index 6c674c59ce..cff59037df 100644 --- a/ethereum/p2p/src/main/java/tech/pegasys/pantheon/ethereum/p2p/netty/ApiHandler.java +++ b/ethereum/p2p/src/main/java/tech/pegasys/pantheon/ethereum/p2p/netty/ApiHandler.java @@ -92,6 +92,8 @@ final class ApiHandler extends SimpleChannelInboundHandler { "Received Wire DISCONNECT, but unable to parse reason. Peer: {}", connection.getPeer().getClientId(), e); + } finally { + disconnect.release(); } connection.terminateConnection(reason, true);