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

Close the history channel on task cancellation. #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ghost
Copy link

@ghost ghost commented Sep 23, 2020

When the router task is cancelled, the channel remains open: the listener registered for the location changes stays attached and this leads to memory leaks and unwanted effects, especially when reloading the router is restarted later.

With this change, the channel is closed when the task is cancelled.

Maarten Winkels added 2 commits September 23, 2020 10:23
When the router task is cancelled, the channel remains open: the listener registered for the location changes stays attached and this leads to memory leaks and unwanted effects, especially when reloading the router is restarted later.

With this change, the channel is closed when the task is cancelled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
0 participants