You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi and thanks for reporting. This is a bug in refCount affecting both 2.x and 3.x.
What happens is that when the source subject completes, it completes buffer, which then cancels the boundary source, which makes the refCount think it still has 1 subscriber active and doesn't reset the source.
The operator is a bit delicate so I have to work out the correct state transitions and not break tests...
The issue described below started with version 2.2.10 and continues with 2.2.11. It works with 2.2.7 through 2.2.9.
I have a test where a set a
ReplaySubject
like so:Then, I subscribe twice to the observable (I'm simplifying the test case just to demonstrate the bug):
When I run the above test, it fails on the second test subscription on RxJava 2.2.10 or 2.2.11:
The text was updated successfully, but these errors were encountered: