Skip to content

Commit 19c020e

Browse files
committed
Fix SubscriberInputStream.resume()
See gh-35468 Signed-off-by: Johnny Lim <[email protected]>
1 parent df27627 commit 19c020e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-core/src/main/java/org/springframework/core/io/buffer/SubscriberInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ int addWork() {
185185
}
186186

187187
private void resume() {
188-
if (this.parkedThread != READY) {
188+
if (this.parkedThread.get() != READY) {
189189
Object old = this.parkedThread.getAndSet(READY);
190190
if (old != READY) {
191191
LockSupport.unpark((Thread)old);

0 commit comments

Comments
 (0)