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

Simplify timing code #142

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Simplify timing code #142

merged 2 commits into from
Jan 29, 2025

Conversation

longnguyen2004
Copy link
Collaborator

Remove 2 extraneous performance.now() call, and do not call setTimeout when sleep duration is 0.

Copy link

pkg-pr-new bot commented Jan 28, 2025

Open in Stackblitz

npm i https://pkg.pr.new/Discord-RE/Discord-video-stream/@dank074/discord-video-stream@142

commit: 483dac6

@longnguyen2004
Copy link
Collaborator Author

Seems fine after my own testing

@longnguyen2004 longnguyen2004 marked this pull request as ready for review January 29, 2025 14:56
@longnguyen2004 longnguyen2004 merged commit 1e5b918 into master Jan 29, 2025
5 checks passed
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.

1 participant