Skip to content

Close the history channel on task cancellation.#2

Open
ghost wants to merge 2 commits intocuriosity26:masterfrom
onewelcome:patch-1
Open

Close the history channel on task cancellation.#2
ghost wants to merge 2 commits intocuriosity26:masterfrom
onewelcome:patch-1

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

Development

Successfully merging this pull request may close these issues.

0 participants