Skip to content

Commit a7b3e75

Browse files
authored
Merge pull request #17671 from iterate-ch/bugfix/GH-17437-credentials-transfers
Must not reset credentials for bookmark when transfer completes
2 parents e077a91 + 75655c5 commit a7b3e75

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/main/java/ch/cyberduck/core/Session.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ public void interrupt() throws BackgroundException {
201201
}
202202

203203
protected void logout() throws BackgroundException {
204+
log.debug("Reset credentials for {}", host);
204205
host.getCredentials().reset();
205206
}
206207

core/src/main/java/ch/cyberduck/core/transfer/Transfer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public Transfer(final Host host, final Path root, final Local folder, final Band
168168
* @param roots List of files to add to transfer
169169
*/
170170
public Transfer(final Host host, final List<TransferItem> roots, final BandwidthThrottle bandwidth) {
171-
this.host = host;
171+
this.host = new Host(host);
172172
this.roots.addAll(roots);
173173
this.bandwidth = bandwidth;
174174
}

0 commit comments

Comments
 (0)