We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e736b6 commit 8321f01Copy full SHA for 8321f01
spring-core/src/main/java/org/springframework/util/concurrent/SettableListenableFuture.java
@@ -169,7 +169,9 @@ protected void done() {
169
170
private boolean checkCompletingThread() {
171
boolean check = (this.completingThread == Thread.currentThread());
172
- this.completingThread = null; // only first check actually counts
+ if (check) {
173
+ this.completingThread = null; // only first match actually counts
174
+ }
175
return check;
176
}
177
0 commit comments