mirror of
https://github.com/revanced/jadb.git
synced 2025-02-10 17:26:46 +01:00
Add Closeable to Transport
This commit is contained in:
parent
9fe4111495
commit
6a4f5c38a1
@ -4,7 +4,7 @@ import java.io.*;
|
||||
import java.net.Socket;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
class Transport {
|
||||
class Transport implements Closeable {
|
||||
|
||||
private final OutputStream outputStream;
|
||||
private final InputStream inputStream;
|
||||
@ -64,6 +64,7 @@ class Transport {
|
||||
return new SyncTransport(outputStream, inputStream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
inputStream.close();
|
||||
outputStream.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user