Skip to content

Removed memory leak due to setInterval in js.#29

Closed
trokhymchuk wants to merge 1 commit intovinibiavatti1:masterfrom
trokhymchuk:master
Closed

Removed memory leak due to setInterval in js.#29
trokhymchuk wants to merge 1 commit intovinibiavatti1:masterfrom
trokhymchuk:master

Conversation

@trokhymchuk
Copy link

I've recently noticed a memory leak in the site with this library, after some investigation I found the place --- it was setInterval function.

You could try inserting console.log('test'); after const interval = setInterval(() => { line, it will print infinite number of messages.

@vinibiavatti1 vinibiavatti1 added the bug Something isn't working label Oct 5, 2021
@vinibiavatti1 vinibiavatti1 added this to the v2.1.1 milestone Oct 5, 2021
@vinibiavatti1
Copy link
Owner

Hi @trokhymchuk! Thanks for reporting this issue. It was a big problem of the lib. I already fixed it and made other changes into the source code file that contains this logic, so, I will close the PR but the fix will be available in the next version v2.1.1 ;)

@vinibiavatti1 vinibiavatti1 linked an issue Oct 5, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants