From 3edbc80e7de08b6ff20fa13908378109c6ce0c2e Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Fri, 8 Sep 2023 20:00:02 +0200 Subject: [PATCH] Added TypeError workaround for Bun 1.0.0. Bun 1.0.0 now supports IPC --- config.json | 4 ++-- svr.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index 4af8df1..3c0abf6 100644 --- a/config.json +++ b/config.json @@ -3,7 +3,7 @@ "port": 80, "pubport": 80, "page404": "404.html", - "timestamp": 1694193990662, + "timestamp": 1694195890852, "blacklist": [], "nonStandardCodes": [], "enableCompression": true, @@ -102,4 +102,4 @@ "errorPages": [], "useWebRootServerSideScript": true, "exposeModsInErrorPages": true -} \ No newline at end of file +} diff --git a/svr.js b/svr.js index 4cbfd64..cf5bc0a 100644 --- a/svr.js +++ b/svr.js @@ -5083,6 +5083,7 @@ function start(init) { } if (!cluster.isPrimary && cluster.isPrimary !== undefined) { process.on("message", function (line) { + if(line === undefined) return; // Workaround for Bun 1.0.0 try { if (line == "") { // Does Nothing