Skip to content

Commit

Permalink
promise leak
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Sep 7, 2023
1 parent 5d1dfed commit b8703ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/AfController.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class AfController extends EventEmitter {

const cleanup = ()=>{
this.removeListener(...eventArgs)
deferred.resolve(null)
}

return {cleanup, promise: deferred.promise}
Expand Down

0 comments on commit b8703ef

Please sign in to comment.