diff --git a/lib/jsftp.js b/lib/jsftp.js index ebd8e8f..a84fff8 100644 --- a/lib/jsftp.js +++ b/lib/jsftp.js @@ -458,6 +458,7 @@ Ftp.prototype.get = function(remotePath, localPath, callback = NOOP) { action: "get", socket: socket }); + socket.read(); }); // This ensures that any expected outcome is handled. There is no @@ -545,6 +546,7 @@ Ftp.prototype.put = function(from, destination, callback) { socket: from, totalSize }); + from.read(); }); this.getPutSocket(from, to, callback);