From 6ce72cee501ccc84ecc8b72783624f57504abcb4 Mon Sep 17 00:00:00 2001 From: Sergi Mansilla Date: Mon, 19 Nov 2012 12:26:13 +0100 Subject: [PATCH] Better naming --- lib/jsftp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/jsftp.js b/lib/jsftp.js index 4de7197..dc3dbc2 100644 --- a/lib/jsftp.js +++ b/lib/jsftp.js @@ -514,7 +514,7 @@ Ftp.getPasvPort = function(text) { this.getGetSocket = function(path, callback) { var self = this; - this._streamingPasv(function(err, socket) { + this.getPasvSocket(function(err, socket) { if (err) return callback(err); if (socket.pause) socket.pause(); self._enqueueCmd("retr " + path, function(err, res) { @@ -542,7 +542,7 @@ Ftp.getPasvPort = function(text) { this.getPutSocket = function(path, callback) { var self = this; - this._streamingPasv(function(err, socket) { + this.getPasvSocket(function(err, socket) { if (err) return callback(err); var hadErr; @@ -565,7 +565,7 @@ Ftp.getPasvPort = function(text) { }); }; - this._streamingPasv = function(callback) { + this.getPasvSocket = function(callback) { var self = this; var doPasv = function(err, res) { if (err || !res || res.code !== 227) { @@ -608,7 +608,7 @@ Ftp.getPasvPort = function(text) { // If there is a passive call happening, we put the requested passive // call in the passive call buffer, to be executed later. var fn = function() { - this._streamingPasv(function(err, socket) { + this.getPasvSocket(function(err, socket) { if (err) return callback(err); // Executes the next passive call, if there are any.