diff --git a/src/se/vidstige/jadb/JadbDevice.java b/src/se/vidstige/jadb/JadbDevice.java index 72844ea..532a144 100644 --- a/src/se/vidstige/jadb/JadbDevice.java +++ b/src/se/vidstige/jadb/JadbDevice.java @@ -70,7 +70,9 @@ public class JadbDevice { transport.verifyResponse(); } - return convertState(transport.readString()); + State state = convertState(transport.readString()); + transport.close(); + return state; } public InputStream executeShell(String command, String... args) throws IOException, JadbException {