Skip to content

Commit

Permalink
Better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sergi committed Nov 19, 2012
1 parent dc5d1ac commit 6ce72ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/jsftp.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand All @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 6ce72ce

Please sign in to comment.