reset instead of close

pull/5/head
Zlatin Balevsky 2019-06-14 22:08:25 +01:00
parent cc5ece5103
commit 77caaf83de
1 changed files with 1 additions and 1 deletions

View File

@ -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) {}
}
}