Skip to content

Commit

Permalink
Merge pull request #120 from v1v/fix/concurrency
Browse files Browse the repository at this point in the history
Fix ConcurrentModificationException for files actions
  • Loading branch information
donmccasland committed Oct 29, 2020
2 parents 2b10f76 + 9fa1b08 commit 0987fba
Showing 1 changed file with 3 additions and 1 deletion.
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 0987fba

Please sign in to comment.