Skip to content
This repository
Browse code

Better naming

  • Loading branch information...
commit 6ce72cee501ccc84ecc8b72783624f57504abcb4 1 parent dc5d1ac
Sergi Mansilla authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 lib/jsftp.js
8 lib/jsftp.js
@@ -514,7 +514,7 @@ Ftp.getPasvPort = function(text) {
514 514
515 515 this.getGetSocket = function(path, callback) {
516 516 var self = this;
517   - this._streamingPasv(function(err, socket) {
  517 + this.getPasvSocket(function(err, socket) {
518 518 if (err) return callback(err);
519 519 if (socket.pause) socket.pause();
520 520 self._enqueueCmd("retr " + path, function(err, res) {
@@ -542,7 +542,7 @@ Ftp.getPasvPort = function(text) {
542 542
543 543 this.getPutSocket = function(path, callback) {
544 544 var self = this;
545   - this._streamingPasv(function(err, socket) {
  545 + this.getPasvSocket(function(err, socket) {
546 546 if (err) return callback(err);
547 547
548 548 var hadErr;
@@ -565,7 +565,7 @@ Ftp.getPasvPort = function(text) {
565 565 });
566 566 };
567 567
568   - this._streamingPasv = function(callback) {
  568 + this.getPasvSocket = function(callback) {
569 569 var self = this;
570 570 var doPasv = function(err, res) {
571 571 if (err || !res || res.code !== 227) {
@@ -608,7 +608,7 @@ Ftp.getPasvPort = function(text) {
608 608 // If there is a passive call happening, we put the requested passive
609 609 // call in the passive call buffer, to be executed later.
610 610 var fn = function() {
611   - this._streamingPasv(function(err, socket) {
  611 + this.getPasvSocket(function(err, socket) {
612 612 if (err) return callback(err);
613 613
614 614 // Executes the next passive call, if there are any.

0 comments on commit 6ce72ce

Please sign in to comment.
Something went wrong with that request. Please try again.