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,
|
||||
"pubport": 80,
|
||||
"page404": "404.html",
|
||||
"timestamp": 1694193990662,
|
||||
"timestamp": 1694195890852,
|
||||
"blacklist": [],
|
||||
"nonStandardCodes": [],
|
||||
"enableCompression": true,
|
||||
|
|
1
svr.js
1
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
|
||||
|
|
Reference in a new issue