mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
voice fixes
This commit is contained in:
@@ -122,11 +122,10 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
self.playingIntent = retStream;
|
||||
|
||||
function send() {
|
||||
|
||||
if (!self.playingIntent || !self.playing) {
|
||||
self.setSpeaking(false);
|
||||
retStream.emit("end");
|
||||
self;
|
||||
console.log("ending 1");
|
||||
return;
|
||||
}
|
||||
try {
|
||||
@@ -137,6 +136,7 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
if (onWarning) {
|
||||
retStream.emit("end");
|
||||
self.setSpeaking(false);
|
||||
console.log("ending 2");
|
||||
return;
|
||||
} else {
|
||||
onWarning = true;
|
||||
|
||||
Reference in New Issue
Block a user