Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Oct 24, 2016
Merged

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

merged 4 commits into from
Oct 24, 2016

Conversation

benlesh
Copy link
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

Coverage Status

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

@coveralls
Copy link

Coverage Status

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

@coveralls
Copy link

Coverage Status

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

@coveralls
Copy link

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
Member

LGTM

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

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