We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa630b commit 74af9a6Copy full SHA for 74af9a6
speech-to-text/timing-stream.js
@@ -38,11 +38,9 @@ function TimingStream(opts) {
38
this.sourceEnded = false;
39
40
var self = this;
41
- this.on('pipe', function(source) {
42
- source.on('end', function() {
43
- self.sourceEnded = true; // todo: see if there's anything built-in that does this for us
44
- self.checkForEnd();
45
- });
+ this.on('finish', function() {
+ self.sourceEnded = true; // todo: see if there's anything built-in that does this for us
+ self.checkForEnd();
46
});
47
}
48
util.inherits(TimingStream, Duplex);
0 commit comments