1
0
Fork 0
forked from svrjs/svrjs

Added TypeError workaround for Bun 1.0.0. Bun 1.0.0 now supports IPC

This commit is contained in:
Dorian Niemiec 2023-09-08 20:00:02 +02:00
parent bc6268e2c0
commit 3edbc80e7d
2 changed files with 3 additions and 2 deletions

View file

@ -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
}
}

1
svr.js
View file

@ -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