Skip to content

Commit 221ec5c

Browse files
committed
Synchronize on FileSubscription.this
Regression from aws#519
1 parent 521015e commit 221ec5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/software/amazon/awssdk/core/async/FileAsyncRequestBody.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public void completed(Integer result, ByteBuffer attachment) {
234234
closeFile();
235235
}
236236

237-
synchronized (this) {
237+
synchronized (FileSubscription.this) {
238238
writeInProgress = false;
239239
}
240240
}

0 commit comments

Comments
 (0)