mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
fix(StreamDispatcher): properly check that timestamp fits in 2^32-1 (#2325)
* fix a very strange bug caused by massive timestamps sent to discord * remove 'gratituous' spaces
This commit is contained in:
@@ -284,7 +284,7 @@ class StreamDispatcher extends VolumeInterface {
|
|||||||
const data = this.streamingData;
|
const data = this.streamingData;
|
||||||
data.count++;
|
data.count++;
|
||||||
data.sequence = data.sequence < 65535 ? data.sequence + 1 : 0;
|
data.sequence = data.sequence < 65535 ? data.sequence + 1 : 0;
|
||||||
data.timestamp = data.timestamp + 4294967295 ? data.timestamp + 960 : 0;
|
data.timestamp = ((data.timestamp + 960) < 4294967295) ? data.timestamp + 960 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy(type, reason) {
|
destroy(type, reason) {
|
||||||
|
|||||||
Reference in New Issue
Block a user