Skip to content

Fix duplicate emission in Delay with immediate selector - #1626

Merged
clairernovotny merged 1 commit into
mainfrom
DelaySelectorFix
Oct 27, 2021
Merged

clairernovotny merged 1 commit into
mainfrom
DelaySelectorFix

Conversation

@akarnokd

@akarnokd akarnokd commented Oct 27, 2021

Copy link
Copy Markdown
Collaborator

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