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

scheduler repeat not work #1

Closed
wss445566 opened this issue Mar 3, 2022 · 1 comment
Closed

scheduler repeat not work #1

wss445566 opened this issue Mar 3, 2022 · 1 comment

Comments

@wss445566
Copy link

wss445566 commented Mar 3, 2022

expected output "inputkey" 10 times and "ping" 5 times
but output inputkey 2 times and ping 1 times

in anynet scheduler.py Scheduler process_timers, line 35
I add 2 line to calc the minimum after update self.events[handle]
it solve the problem but duplicate code.

https://gist.github.com/wss445566/c48ea0bf9d17f87f078a9548f0a8a886

@kinnay
Copy link
Owner

kinnay commented Mar 3, 2022

Oops, thanks for letting me know! I fixed it and uploaded a new version to pip.

@kinnay kinnay closed this as completed Mar 3, 2022
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

No branches or pull requests

2 participants