Skip to content

Commit

Permalink
Resume socket for comment get, before ending/closing it
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Liang <liangqi@cn.ibm.com>
  • Loading branch information
std4lqi committed Dec 26, 2019
1 parent 07897f6 commit aab6430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ FTP.prototype.get = function(path, zcomp, cb) {
// Referred from https://cr.yp.to/ftp/retr.html
//
// End/Close emmediately, not waiting for 226 or 250 any more.
source.resume();
source._emit('end');
source._emit('close');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ "name": "ftp4",
"version": "0.3.11",
"version": "0.3.12",
"author": "Brian White <mscdex@mscdex.net>",
"contributors": [
"Qi Liang <liangqi@cn.ibm.com>"
Expand Down

0 comments on commit aab6430

Please sign in to comment.