Ensure TimeoutInputStreams are closed.

This commit is contained in:
akwizgran
2020-08-13 16:21:46 +01:00
parent 0e2d905486
commit 79ad5ca07e
3 changed files with 6 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ class JavaBluetoothTransportConnection
protected void closeConnection(boolean exception) throws IOException {
try {
socket.close();
in.close();
} finally {
connectionLimiter.connectionClosed(this);
}