mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
EventEmitter constructor was not being called in many places. It did work due to the EventEmitter3 constructor being empty, but we can't rely on that.
This commit is contained in:
@@ -3,6 +3,8 @@ var util = require('util')
|
||||
var EventEmitter = require('eventemitter3').EventEmitter
|
||||
|
||||
function RiskyStream(stream) {
|
||||
EventEmitter.call(this)
|
||||
|
||||
this.endListener = function() {
|
||||
this.ended = true
|
||||
this.stream.removeListener('end', this.endListener)
|
||||
|
||||
Reference in New Issue
Block a user