File tree Expand file tree Collapse file tree 2 files changed +652
-8
lines changed
main/java/io/rsocket/internal
test/java/io/rsocket/internal Expand file tree Collapse file tree 2 files changed +652
-8
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ public static <T> UnicastMonoProcessor<T> create() {
45
45
static final AtomicIntegerFieldUpdater <UnicastMonoProcessor > ONCE =
46
46
AtomicIntegerFieldUpdater .newUpdater (UnicastMonoProcessor .class , "once" );
47
47
48
- Publisher <? extends O > source ;
49
-
50
48
Throwable error ;
51
49
volatile boolean terminated ;
52
50
O value ;
@@ -67,7 +65,6 @@ public final void cancel() {
67
65
return ;
68
66
}
69
67
70
- source = null ;
71
68
if (s != null ) {
72
69
s .cancel ();
73
70
}
@@ -84,7 +81,6 @@ public void dispose() {
84
81
final CancellationException e = new CancellationException ("Disposed" );
85
82
error = e ;
86
83
value = null ;
87
- source = null ;
88
84
terminated = true ;
89
85
if (s != null ) {
90
86
s .cancel ();
@@ -159,7 +155,6 @@ public final void onError(Throwable cause) {
159
155
160
156
error = cause ;
161
157
value = null ;
162
- source = null ;
163
158
terminated = true ;
164
159
165
160
final CoreSubscriber <? super O > a = actual ;
@@ -182,8 +177,6 @@ public final void onNext(@Nullable O value) {
182
177
}
183
178
184
179
this .value = value ;
185
- final Publisher <? extends O > parent = source ;
186
- source = null ;
187
180
terminated = true ;
188
181
189
182
final CoreSubscriber <? super O > a = actual ;
@@ -193,7 +186,7 @@ public final void onNext(@Nullable O value) {
193
186
a .onComplete ();
194
187
}
195
188
} else {
196
- if (s != null && !( parent instanceof Mono ) ) {
189
+ if (s != null ) {
197
190
s .cancel ();
198
191
}
199
192
You can’t perform that action at this time.
0 commit comments