forked from svrjs/svrjs
Added TypeError workaround for Bun 1.0.0. Bun 1.0.0 now supports IPC
This commit is contained in:
parent
bc6268e2c0
commit
3edbc80e7d
2 changed files with 3 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
"port": 80,
|
"port": 80,
|
||||||
"pubport": 80,
|
"pubport": 80,
|
||||||
"page404": "404.html",
|
"page404": "404.html",
|
||||||
"timestamp": 1694193990662,
|
"timestamp": 1694195890852,
|
||||||
"blacklist": [],
|
"blacklist": [],
|
||||||
"nonStandardCodes": [],
|
"nonStandardCodes": [],
|
||||||
"enableCompression": true,
|
"enableCompression": true,
|
||||||
|
@ -102,4 +102,4 @@
|
||||||
"errorPages": [],
|
"errorPages": [],
|
||||||
"useWebRootServerSideScript": true,
|
"useWebRootServerSideScript": true,
|
||||||
"exposeModsInErrorPages": true
|
"exposeModsInErrorPages": true
|
||||||
}
|
}
|
||||||
|
|
1
svr.js
1
svr.js
|
@ -5083,6 +5083,7 @@ function start(init) {
|
||||||
}
|
}
|
||||||
if (!cluster.isPrimary && cluster.isPrimary !== undefined) {
|
if (!cluster.isPrimary && cluster.isPrimary !== undefined) {
|
||||||
process.on("message", function (line) {
|
process.on("message", function (line) {
|
||||||
|
if(line === undefined) return; // Workaround for Bun 1.0.0
|
||||||
try {
|
try {
|
||||||
if (line == "") {
|
if (line == "") {
|
||||||
// Does Nothing
|
// Does Nothing
|
||||||
|
|
Reference in a new issue