Skip to content

Commit

Permalink
Keep connection alive at HybridFile.forEachChildrenFile()
Browse files Browse the repository at this point in the history
Addresses #4081
  • Loading branch information
TranceLove committed Feb 28, 2024
1 parent 7136ff3 commit 5998a8b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public HybridFile(OpenMode mode, String path) {
this.mode = mode;
sanitizePathAsNecessary();
}

public HybridFile(OpenMode mode, String path, String name, boolean isDirectory) {
this(mode, path);
this.name = name;
Expand Down Expand Up @@ -960,7 +959,7 @@ public void forEachChildrenFile(Context context, boolean isRoot, OnFileFound onF
switch (mode) {
case SFTP:
SshClientUtils.execute(
new SFtpClientTemplate<Boolean>(getPath(), true) {
new SFtpClientTemplate<Boolean>(getPath(), false) {
@Override
public Boolean execute(@NonNull SFTPClient client) {
try {
Expand Down

0 comments on commit 5998a8b

Please sign in to comment.