Skip to content

Commit

Permalink
Merge pull request #60 from sutoiku/master
Browse files Browse the repository at this point in the history
Fix end event not propagated on a glob sometimes.
  • Loading branch information
morris authored Aug 5, 2016
2 parents 972127c + 78c78a4 commit 7379af2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,9 @@ module.exports = {

if ( this.noMlsd ) return this.list( path, cb );

this.mlsd( path, onMlsd );
setImmediate(function() {
self.mlsd( path, onMlsd );
});

function onMlsd( err, files ) {

Expand Down

0 comments on commit 7379af2

Please sign in to comment.