diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index 6885fefa..68b50bdf 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -2094,7 +2094,7 @@ module.exports = function setup(fsOptions) { // Kill the session with the same name before starting a new one if (options.kill) { session = sessions[options.session]; - if (session) + if (session && session.pty) session.pty.kill(); if (!options.command)