Negative timeout in @discordjs/ws
Not sure if this is a possible bug in ws package, i left my development bot running overnight on my pc and saw this warning in my console the next day, so i have no idea if its reproducible, a harmless warning, or anything else. It could be caused by my pc going into sleep mode or losing internet perhaps, but it still seems like an undesirable bug to have a negative 6 hour timeout.
Environment Info:
Code:
3 Replies
@DD i was under the impression this was fixed with https://github.com/discordjs/discord.js/commit/b854c7b97996c625dadc9a47c3a82d1307cbc315 ?
it was, but check the milestone associated with the PR
its unreleased
^ @Magnaboy
as described in the PR, this isn't an issue, you can safely ignore the warning
node treats the negative value as 1ms, so it's pretty insignificant (in our use case we're trying to not sleep in that case)
actual patch will be out next release, already is on dev releases
jira just pushed a release that cleanly backported a few commits so
https://discord.com/channels/222078108977594368/1006713300177920121/1437433675657646140
should be fixed now on 2.x as well