Skip to content

Commit

Permalink
Remove redundant closing of connection
Browse files Browse the repository at this point in the history
Fixes bisq-network#4052, as the peer.close() already calls closeConnection if
a writeTarget is established successfully.
  • Loading branch information
ripcurlx committed Mar 12, 2020
1 parent 96934d9 commit 5bc3425
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ private Optional<VersionMessage> attemptHandshakeForVersionMessage() {
}

peer.close();
client.closeConnection();

restoreLoggerLevel(NioClient.class, originalNioClientLoggerLevel);
restoreLoggerLevel(NioClientManager.class, originalNioClientManagerLoggerLevel);
Expand Down

0 comments on commit 5bc3425

Please sign in to comment.