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

Remove extra callback execution on widgets' .poll() method call #292

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

postsolar
Copy link
Contributor

utils.timeout.interval() which is used by .poll() itself executes the first callback before setting up the timer, so there's no need for .poll() to do it, as this leads to callback being executed twice.

`utils.timeout.interval()` which is used by `.poll()` itself executes the first callback before setting up the timer, so there's no need for `.poll()` to do it, as this leads to callback being executed twice.
@Aylur Aylur merged commit 28d62b3 into Aylur:main Feb 7, 2024
2 checks passed
@postsolar postsolar deleted the patch-1 branch February 8, 2024 08:48
gorsbart pushed a commit to gorsbart/ags that referenced this pull request Feb 28, 2024
…lur#292)

`utils.timeout.interval()` which is used by `.poll()` itself executes the first callback before setting up the timer, so there's no need for `.poll()` to do it, as this leads to callback being executed twice.
This pull request was closed.
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