Interrupt packet reader thread on close.

This commit is contained in:
David Kocher
2014-05-14 11:03:46 +02:00
parent baa8c8e995
commit 5c540b6889

View File

@@ -245,6 +245,7 @@ public class SFTPEngine
public void close() public void close()
throws IOException { throws IOException {
sub.close(); sub.close();
reader.interrupt();
} }
protected FileAttributes stat(PacketType pt, String path) protected FileAttributes stat(PacketType pt, String path)