Fix some stream bugs

This commit is contained in:
Amish Shah
2017-01-07 21:10:46 +00:00
parent fcd7cf1450
commit dc640017cd
3 changed files with 8 additions and 8 deletions

View File

@@ -172,7 +172,10 @@ class StreamDispatcher extends EventEmitter {
this.setSpeaking(true);
while (repeats--) {
this.player.voiceConnection.sockets.udp.send(packet)
.catch(e => this.emit('debug', `Failed to send a packet ${e}`));
.catch(e => {
this.setSpeaking(false);
this.emit('debug', `Failed to send a packet ${e}`);
});
}
}