Open joepie91 opened 4 years ago
See https://github.com/pull-stream/stream-to-pull-stream/blob/3a06f5a0717930e62c7f6c300ceacd6dbfd80a5c/index.js#L35
Shouldn't that be removeListener instead of on? As it stands, it's just re-attaching the onClose handler a second time when it should be cleaning things up.
removeListener
on
onClose
+1
See https://github.com/pull-stream/stream-to-pull-stream/blob/3a06f5a0717930e62c7f6c300ceacd6dbfd80a5c/index.js#L35
Shouldn't that be
removeListener
instead ofon
? As it stands, it's just re-attaching theonClose
handler a second time when it should be cleaning things up.