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

debounce: clear emit timer interval on stop #296

Merged
merged 1 commit into from
May 28, 2020
Merged

Conversation

wclr
Copy link
Contributor

@wclr wclr commented Jan 28, 2020

There is a possible bug when timer is set (not yet executed) and stream stopped. If timer interval is not cleared it results in infinite emitting (not sure why emitting is looped).

I don't have a clean simple repro example, but it happened in my app, had to debug it.

Anyway it seems logical to clear not executed emit interval on stop, and not to clear it is a potential problem.

If not do this there is possible bug, when timer is set (not executed) and stream stopped if timer interval is not cleared it results in infinite emitting (not sure why emitting is looped).

 I don't have a clean simple repro example, but it happened in my app, had to debug it. Any way seems logical to clear not executed interval on stop, and not to clear is potential wrong.
@wclr
Copy link
Contributor Author

wclr commented May 2, 2020

@staltz this is a bug.

@staltz staltz merged commit 719bcd9 into staltz:master May 28, 2020
@staltz
Copy link
Owner

staltz commented May 28, 2020

@whitecolor Sorry it took ridiculously long to merge this. I'll publish version 11.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants