From 11b23e99b1f256ffb047ddb2300a19492422e563 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 29 Mar 2024 04:08:19 +0100 Subject: [PATCH] Fix "handler is not defined" error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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