Skip to content

Commit

Permalink
Ignore completion filter failures. Fix #6108.
Browse files Browse the repository at this point in the history
Former-commit-id: 690e732c2f002df2af1168128d8edf36a6d2271c
  • Loading branch information
dkocher committed Jun 26, 2013
1 parent 495d737 commit 967d28e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions source/ch/cyberduck/core/transfer/Transfer.java
Expand Up @@ -449,8 +449,13 @@ private void transfer(final Path file, final TransferPathFilter filter,
// Transfer
this.transfer(file, options, status);
if(file.attributes().isFile()) {
// Post process of file
filter.complete(session, file, options, status);
// Post process of file.
try {
filter.complete(session, file, options, status);
}
catch(BackgroundException e) {
log.warn(String.format("Ignore failure in completion filter for %s", file));
}
}
// Notification
this.fireDidTransferPath(file);
Expand All @@ -473,8 +478,13 @@ private void transfer(final Path file, final TransferPathFilter filter,
if(!failure) {
status.setComplete();
}
// Post process of directory
filter.complete(session, file, options, status);
// Post process of directory.
try {
filter.complete(session, file, options, status);
}
catch(BackgroundException e) {
log.warn(String.format("Ignore failure in completion filter for %s", file));
}
this.cache().remove(file.getReference());
}
}
Expand Down

0 comments on commit 967d28e

Please sign in to comment.