bdy 1.22.14-dev → 1.22.15-beta
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
CHANGED
|
@@ -222,6 +222,8 @@ class ServerSsh extends events_1.default {
|
|
|
222
222
|
return;
|
|
223
223
|
sessionClosed = true;
|
|
224
224
|
logger_1.default.debug('ssh close session');
|
|
225
|
+
if (exitCode === undefined && sftp)
|
|
226
|
+
exitCode = 0;
|
|
225
227
|
if (exitCode !== undefined) {
|
|
226
228
|
session.exit(exitCode);
|
|
227
229
|
session.end();
|