Skip to content

Commit 221adf1

Browse files
izeyebclozel
authored andcommitted
Fix SubscriberInputStream.resume()
See gh-35978 Signed-off-by: Johnny Lim <izeye@naver.com>
1 parent ad849fb commit 221adf1

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
@@ -188,7 +188,7 @@ int addWork() {
188188
}
189189

190190
private void resume() {
191-
if (this.parkedThread != READY) {
191+
if (this.parkedThread.get() != READY) {
192192
Object old = this.parkedThread.getAndSet(READY);
193193
if (old != READY) {
194194
LockSupport.unpark((Thread)old);

0 commit comments

Comments
 (0)