fix(voice): handle negative timeouts#11362
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
📝 WalkthroughWalkthroughA single-line modification to the audio scheduling logic in the voice package clamps the delay for the next audio cycle to a minimum of 1 millisecond using Math.max, preventing zero or negative delay values during frame preparation. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11362 +/- ##
=======================================
Coverage 32.43% 32.43%
=======================================
Files 369 369
Lines 13616 13616
Branches 1068 1068
=======================================
Hits 4416 4416
Misses 9065 9065
Partials 135 135
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@discord-js-bot pack this |
I was getting random
TimeoutNegativeWarningwhen running my bot with Node 24+through
--trace-warningsi was able to get the following stack tracescope
explicitly handle negative timeouts during
prepareNextAudioFrameif there is a different underlying issue, let me know so i can adjust as needed 🙏