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.
2 parents 6b24a19 + 185fe01 commit e9b59a0Copy full SHA for e9b59a0
src/main/java/io/reactivesocket/ReactiveSocketFactory.java
@@ -104,16 +104,14 @@ public void onError(Throwable t) {
104
105
@Override
106
public void onComplete() {
107
- if (!complete.get()) {
108
- complete.set(true);
+ if (complete.compareAndSet(false, true)) {
109
subscriber.onComplete();
110
}
111
112
});
113
114
executorService.schedule(() -> {
115
116
117
subscriber.onError(new TimeoutException());
118
119
}, timeout, timeUnit);
0 commit comments