Reset what is playing

This commit is contained in:
Amish Shah
2016-12-29 21:51:23 +00:00
parent 72a99f9582
commit ad18b05d66
2 changed files with 21 additions and 3 deletions

View File

@@ -177,7 +177,7 @@ class StreamDispatcher extends EventEmitter {
const data = this.streamingData;
if (data.missed >= 5) {
if (data.missed >= 5 && !controlled) {
this.destroy('end', 'Stream is not generating quickly enough.');
return;
}