You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.
I'm fairly sure we can't easily reproduce this in prod, and might even be caused by a race condition with the vote finishing, but not saying it's finished before the time is attempted to be increased. Either way we need some way to handle if subsequent vote timers have a negative time.
The text was updated successfully, but these errors were encountered:
Describe the bug
this error is thrown sometimes with dynamically timed vote groups https://paste.traincarts.net/oboheyavow
I believe this has to do with voting near when the vote is supposed to run out (probably within milliseconds),. The new timer to finish the vote is passed in a negative time because of this on this line
https://github.com/CascadeBot/CascadeBot/blob/dev/src/main/java/org/cascadebot/cascadebot/utils/votes/VoteButtonGroup.java#L130
I'm fairly sure we can't easily reproduce this in prod, and might even be caused by a race condition with the vote finishing, but not saying it's finished before the time is attempted to be increased. Either way we need some way to handle if subsequent vote timers have a negative time.
The text was updated successfully, but these errors were encountered: