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 duplicate emission in Delay with immediate selector #1626

Merged
merged 1 commit into from
Oct 27, 2021

Conversation

akarnokd
Copy link
Collaborator

@akarnokd akarnokd commented Oct 27, 2021

The Delay with selector operator could emit the same item twice in case the inner source ignored the Dispose call after the emission (usually before emitting OnCompleted).

This PR adds a flag and check so that the emission path is only executed once per such inner source.

Fixes #1625

@akarnokd akarnokd added the bug label Oct 27, 2021
@clairernovotny clairernovotny merged commit ddf3537 into main Oct 27, 2021
@clairernovotny clairernovotny deleted the DelaySelectorFix branch October 27, 2021 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delay with delayDurationSelector duplicates items when the delay is zero
2 participants