Skip to content

fix(ReplaySubject): observer now subscribed prior to running subscrip…#2046

Merged
jayphelps merged 4 commits intoReactiveX:masterfrom
benlesh:fixReplaySubject
Oct 24, 2016
Merged

fix(ReplaySubject): observer now subscribed prior to running subscrip…#2046
jayphelps merged 4 commits intoReactiveX:masterfrom
benlesh:fixReplaySubject

Conversation

@benlesh
Copy link
Copy Markdown
Member

@benlesh benlesh commented Oct 17, 2016

…tion function

Removed reliance on inherited _subscribe method from Subject. ReplaySubject has different behaviors during subscription for notifying new subscribers after a completion or error. After moving the super._subscribe call before the notification from saved _events, it was apparent that the inherited behavior from Subject was stopping the subscriber before it could be notified properly.

fixes #2044

…tion function

Removed reliance on inherited `_subscribe` method from `Subject`. ReplaySubject has different behaviors during subscription for notifying new subscribers after a completion or error. After moving the `super._subscribe` call before the notification from saved `_events`, it was apparent that the inherited behavior from `Subject` was stopping the subscriber before it could be notified properly.

fixes #2044
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.008%) to 97.032% when pulling dfb64ec on blesh:fixReplaySubject into 5460e77 on ReactiveX:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.008%) to 97.032% when pulling f058524 on blesh:fixReplaySubject into 8ebee66 on ReactiveX:master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.008%) to 97.032% when pulling 81c16a2 on blesh:fixReplaySubject into ece1b89 on ReactiveX:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Oct 24, 2016

Coverage Status

Coverage decreased (-0.009%) to 97.216% when pulling 541b8a4 on blesh:fixReplaySubject into a5e9cfe on ReactiveX:master.

@jayphelps
Copy link
Copy Markdown
Member

LGTM

@jayphelps jayphelps merged commit fea08e9 into ReactiveX:master Oct 24, 2016
@lock
Copy link
Copy Markdown

lock Bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ReplaySubject subscription handler is called before it is subscribed

3 participants