From 77caaf83de9fbadccf6f36c9c356581d7c3588be Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Fri, 14 Jun 2019 22:08:25 +0100 Subject: [PATCH] reset instead of close --- core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy b/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy index 3bc140d6..5e13ff5c 100644 --- a/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy +++ b/core/src/main/groovy/com/muwire/core/connection/Endpoint.groovy @@ -34,7 +34,7 @@ class Endpoint implements Closeable { try {outputStream.close()} catch (Exception ignore) {} } if (toClose != null) { - try {toClose.close()} catch (Exception ignore) {} + try {toClose.reset()} catch (Exception ignore) {} } }