close the sockets' OutputStream

java-i2p-warning
Zlatin Balevsky 2022-08-28 17:38:51 +01:00
parent 01fd58b2ff
commit f3686b7bdd
No known key found for this signature in database
GPG Key ID: A72832072D525E41
2 changed files with 2 additions and 0 deletions

View File

@ -468,6 +468,7 @@ class ConnectionAcceptor {
else if (version == 2)
browseManager.processV2Request(browser, e)
} finally {
try {e.getOutputStream().close()} catch (IOException ignore) {}
e.close()
}
}

View File

@ -214,6 +214,7 @@ class BrowseSession implements Runnable {
}
} finally {
currentThread = null
endpoint?.getOutputStream()?.close()
endpoint?.close()
}
}