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:
parent
d5d8b7a8ba
commit
d9b0601d3a
|
@ -242,7 +242,7 @@ public int exitValue() {
|
|||
@Override
|
||||
public void destroy() {
|
||||
if (channel.isOpen()) {
|
||||
channel.close(true);
|
||||
channel.close(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue