Close remote handles when closing stream.

This commit is contained in:
David Kocher
2014-05-14 23:31:07 +02:00
parent 77f5d7fdb8
commit f34667521d

View File

@@ -166,6 +166,8 @@ public class RemoteFile
public void close()
throws IOException {
flush();
// Close handle
RemoteFile.this.close();
}
}
@@ -269,6 +271,8 @@ public class RemoteFile
throw new SFTPException("Unexpected packet: " + res.getType());
}
}
// Close handle
RemoteFile.this.close();
}
}
}