Skip to content

Commit 5998a8b

Browse files
committed
Keep connection alive at HybridFile.forEachChildrenFile()
Addresses #4081
1 parent 7136ff3 commit 5998a8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/java/com/amaze/filemanager/filesystem/HybridFile.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ public HybridFile(OpenMode mode, String path) {
148148
this.mode = mode;
149149
sanitizePathAsNecessary();
150150
}
151-
152151
public HybridFile(OpenMode mode, String path, String name, boolean isDirectory) {
153152
this(mode, path);
154153
this.name = name;
@@ -960,7 +959,7 @@ public void forEachChildrenFile(Context context, boolean isRoot, OnFileFound onF
960959
switch (mode) {
961960
case SFTP:
962961
SshClientUtils.execute(
963-
new SFtpClientTemplate<Boolean>(getPath(), true) {
962+
new SFtpClientTemplate<Boolean>(getPath(), false) {
964963
@Override
965964
public Boolean execute(@NonNull SFTPClient client) {
966965
try {

0 commit comments

Comments
 (0)