diff --git a/app/bufferizedPTY.js b/app/bufferizedPTY.js index 7597b826..37848ae6 100644 --- a/app/bufferizedPTY.js +++ b/app/bufferizedPTY.js @@ -1,6 +1,10 @@ module.exports = function patchPTYModule (path) { const mod = require(path) const oldSpawn = mod.spawn + if (mod.patched) { + return mod + } + mod.patched = true mod.spawn = (file, args, opt) => { let terminal = oldSpawn(file, args, opt) let timeout = null