From 5998a8b6ea9e330d78404f37a5b59377d661c00f Mon Sep 17 00:00:00 2001 From: TranceLove Date: Wed, 28 Feb 2024 17:44:48 +0800 Subject: [PATCH] Keep connection alive at HybridFile.forEachChildrenFile() Addresses #4081 --- .../main/java/com/amaze/filemanager/filesystem/HybridFile.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/amaze/filemanager/filesystem/HybridFile.java b/app/src/main/java/com/amaze/filemanager/filesystem/HybridFile.java index a8bcfb18bd..cb2de5723d 100644 --- a/app/src/main/java/com/amaze/filemanager/filesystem/HybridFile.java +++ b/app/src/main/java/com/amaze/filemanager/filesystem/HybridFile.java @@ -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; @@ -960,7 +959,7 @@ public void forEachChildrenFile(Context context, boolean isRoot, OnFileFound onF switch (mode) { case SFTP: SshClientUtils.execute( - new SFtpClientTemplate(getPath(), true) { + new SFtpClientTemplate(getPath(), false) { @Override public Boolean execute(@NonNull SFTPClient client) { try {