mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
some voice fixes
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -38,6 +38,9 @@ class VoiceConnectionPlayer extends EventEmitter {
|
|||||||
|
|
||||||
_shutdown() {
|
_shutdown() {
|
||||||
this.speaking = false;
|
this.speaking = false;
|
||||||
|
if (this.dispatcher) {
|
||||||
|
this.dispatcher._triggerTerminalState('end', 'ended by parent player shutdown');
|
||||||
|
}
|
||||||
for (const stream of this.processMap.keys()) this.killStream(stream);
|
for (const stream of this.processMap.keys()) this.killStream(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,6 +49,7 @@ class VoiceConnectionPlayer extends EventEmitter {
|
|||||||
this._streamingData = this.dispatcher.streamingData;
|
this._streamingData = this.dispatcher.streamingData;
|
||||||
this.emit('debug', 'cleaning up streams after end/error');
|
this.emit('debug', 'cleaning up streams after end/error');
|
||||||
if (streams) {
|
if (streams) {
|
||||||
|
this.processMap.delete(stream);
|
||||||
if (streams.inputStream && streams.pcmConverter) {
|
if (streams.inputStream && streams.pcmConverter) {
|
||||||
try {
|
try {
|
||||||
if (streams.inputStream.unpipe) {
|
if (streams.inputStream.unpipe) {
|
||||||
|
|||||||
Reference in New Issue
Block a user