Fix "handler is not defined" error

This commit is contained in:
Dorian Niemiec 2024-03-29 04:08:19 +01:00
parent 3d5d57b7b4
commit 11b23e99b1

View file

@ -303,7 +303,7 @@ Mod.prototype.callback = function (req, res, serverconsole, responseEnd, href, e
}; };
res.prependListener("close", function() { 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 res.on("error", function() {}); //Suppress response stream errors