Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Put resume in the next tick #37

Merged
merged 2 commits into from

2 participants

@sergi
Owner

No description provided.

@sergi sergi merged commit dd668f9 into sergi:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 29, 2012
  1. Put resume in the next tick

    authored
  2. @fjakobs

    Merge pull request #7 from ajaxorg/fix_resume2

    fjakobs authored
    Put resume in the next tick
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +4 −2 lib/jsftp.js
  2. +1 −1  package.json
View
6 lib/jsftp.js
@@ -640,8 +640,10 @@ Ftp.getPasvPort = function(text) {
this.removeListener("close", onClose);
this.removeListener("error", onError);
- buffer.forEach(socket.emit.bind(socket));
- resume.call(this);
+ setTimeout(function() {
+ buffer.forEach(socket.emit.bind(socket));
+ resume.call(socket);
+ }, 0);
};
return socket;
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "jsftp",
"id": "jsftp",
- "version": "0.5.2",
+ "version": "0.5.3",
"description": "A sane FTP client implementation for NodeJS",
"keywords": [ "ftp", "protocol", "files", "server", "client", "async" ],
"author": "Sergi Mansilla <sergi.mansilla@gmail.com> (http://sergimansilla.com)",
Something went wrong with that request. Please try again.