We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b69204e + b7adc75 commit cf039bdCopy full SHA for cf039bd
1 file changed
lib/ssh-client.js
@@ -60,6 +60,9 @@ module.exports = CoreObject.extend({
60
61
stream.on('error', reject);
62
stream.on('finish', resolve);
63
+ stream.on('close', function() {
64
+ sftp.end();
65
+ });
66
stream.write(data);
67
stream.end();
68
});
@@ -77,6 +80,8 @@ module.exports = CoreObject.extend({
77
80
}
78
81
79
82
sftp.readFile(path, {}, function (error, data) {
83
84
+
85
if (error) {
86
reject(error);
87
} else {
@@ -120,6 +125,8 @@ module.exports = CoreObject.extend({
120
125
121
126
122
127
sftp.fastPut(src, dest, {}, function (err) {
128
129
123
130
if (err) {
124
131
reject(err);
132
0 commit comments