diff --git a/index.js b/index.js index 08d2f55..de86840 100644 --- a/index.js +++ b/index.js @@ -303,7 +303,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e }; res.prependListener("close", function() { - if(handler.stdout) handler.stdout.unpipe(res); //Prevent server crashes with write after the end + if(interpreter.stdout) interpreter.stdout.unpipe(res); //Prevent server crashes with write after the end }); res.on("error", function() {}); //Suppress response stream errors