Fix event handler cleanup.

This commit is contained in:
Simo Kinnunen
2014-04-04 11:28:58 +09:00
parent 63389ab7f8
commit 1d2afa65b4

View File

@@ -75,7 +75,7 @@ module.exports = function(options) {
return resolver.promise.finally(function() {
dl.removeListener('error', errorListener)
dl.removeListener('end', closeListener)
dl.removeListener('close', closeListener)
})
}