fix: errors and crashes on Linux because shellArgs being mutated (#662)

Fixes #661
This commit is contained in:
Brandon Bayer 2016-08-29 17:05:00 -05:00 committed by Matheus Fernandes
parent 9a0316dd59
commit dfcb0a9629

View file

@ -146,7 +146,7 @@ app.on('ready', () => {
rpc.on('new', ({ rows = 40, cols = 100, cwd = process.env.HOME }) => {
const shell = cfg.shell;
const shellArgs = cfg.shellArgs;
const shellArgs = Array.from(cfg.shellArgs);
initSession({ rows, cols, cwd, shell, shellArgs }, (uid, session) => {
sessions.set(uid, session);