Fix "handler is not defined" error
This commit is contained in:
parent
3d5d57b7b4
commit
11b23e99b1
1 changed files with 1 additions and 1 deletions
2
index.js
2
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
|
||||
|
|
Loading…
Reference in a new issue