Skip to content

Commit

Permalink
Fix promises handling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 24, 2015
1 parent f48d010 commit 101749b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readdir.js
Expand Up @@ -428,6 +428,7 @@ Readdir.prototype = {
});

paths.on('end', function (data, err) {
if (!promises) return;
forEach(promises, invoke('close'));
promises = null;
if (!def.resolved) {
Expand Down

0 comments on commit 101749b

Please sign in to comment.