bdy 1.9.27-dev → 1.9.28-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distTs/package.json +1 -1
- package/distTs/src/server/ssh.js +12 -0
- package/package.json +1 -1
package/distTs/package.json
CHANGED
package/distTs/src/server/ssh.js
CHANGED
|
@@ -211,6 +211,10 @@ class ServerSsh extends events_1.default {
|
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
213
|
channel = c;
|
|
214
|
+
channel.once('exit', (code) => {
|
|
215
|
+
if (stream && stream.exit)
|
|
216
|
+
stream.exit(code);
|
|
217
|
+
});
|
|
214
218
|
stream.pipe(channel);
|
|
215
219
|
channel.pipe(stream);
|
|
216
220
|
});
|
|
@@ -241,6 +245,10 @@ class ServerSsh extends events_1.default {
|
|
|
241
245
|
return;
|
|
242
246
|
}
|
|
243
247
|
channel = c;
|
|
248
|
+
channel.once('exit', (code) => {
|
|
249
|
+
if (stream && stream.exit)
|
|
250
|
+
stream.exit(code);
|
|
251
|
+
});
|
|
244
252
|
stream.pipe(channel);
|
|
245
253
|
channel.pipe(stream);
|
|
246
254
|
});
|
|
@@ -277,6 +285,10 @@ class ServerSsh extends events_1.default {
|
|
|
277
285
|
return;
|
|
278
286
|
}
|
|
279
287
|
channel = c;
|
|
288
|
+
channel.once('exit', (code) => {
|
|
289
|
+
if (stream && stream.exit)
|
|
290
|
+
stream.exit(code);
|
|
291
|
+
});
|
|
280
292
|
stream.pipe(channel);
|
|
281
293
|
channel.pipe(stream);
|
|
282
294
|
});
|