mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 12:11:11 +00: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:
parent
3df3741922
commit
8ee2788baf
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue