SshdSession: close channel gracefully

Close the channel gracefully to give the server a chance to clean up
properly on its side.

Bug: 565854
Change-Id: Iedda5af3b97c8321f08f7ce854274cbb30e401de
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
This commit is contained in:
Thomas Wolf 2020-08-31 21:22:26 +02:00 committed by Matthias Sohn
parent d5d8b7a8ba
commit d9b0601d3a
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ public int exitValue() {
@Override
public void destroy() {
if (channel.isOpen()) {
channel.close(true);
channel.close(false);
}
}
}