File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/rx/internal/operators Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 41
41
import rx .internal .producers .ProducerArbiter ;
42
42
import rx .observers .Subscribers ;
43
43
import rx .schedulers .Schedulers ;
44
- import rx .subjects .BehaviorSubject ;
44
+ import rx .subjects .* ;
45
45
import rx .subscriptions .SerialSubscription ;
46
46
47
47
public final class OnSubscribeRedo <T > implements OnSubscribe <T > {
@@ -202,7 +202,7 @@ public void call(final Subscriber<? super T> child) {
202
202
// the source observable. We use a BehaviorSubject because subscribeToSource
203
203
// may emit a terminal before the restarts observable (transformed terminals)
204
204
// is subscribed
205
- final BehaviorSubject <Notification <?>> terminals = BehaviorSubject .create ();
205
+ final Subject <Notification <?>, Notification <?>> terminals = BehaviorSubject .< Notification <?>> create (). toSerialized ();
206
206
final Subscriber <Notification <?>> dummySubscriber = Subscribers .empty ();
207
207
// subscribe immediately so the last emission will be replayed to the next
208
208
// subscriber (which is the one we care about)
You can’t perform that action at this time.
0 commit comments