Skip to content

Commit

Permalink
Revert "Revert "Fix ConcurrentModificationException for files actions""
Browse files Browse the repository at this point in the history
This reverts commit 6c4f798.
  • Loading branch information
v1v committed Oct 28, 2020
1 parent dee2c71 commit 9fa1b08
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public void addBucket(String bucketName) {
* @param bucket the directory location in the cloud
*/
public void addUpload(String relativePath, BucketPath bucket) {
files.add(bucket.getPath() + "/" + relativePath);
synchronized (files) {
files.add(bucket.getPath() + "/" + relativePath);
}
}

/** {@inheritDoc} */
Expand Down

0 comments on commit 9fa1b08

Please sign in to comment.