server: fix custom runtime pipe

This commit is contained in:
Koushik Dutta
2024-03-13 13:13:18 -07:00
parent a79bd66969
commit acaebd5c48
2 changed files with 3 additions and 3 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/server",
"version": "0.94.24",
"version": "0.94.25",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@scrypted/server",
"version": "0.94.24",
"version": "0.94.25",
"hasInstallScript": true,
"license": "ISC",
"dependencies": {

View File

@@ -53,7 +53,7 @@ export class CustomRuntimeWorker extends ChildProcessWorker {
setupRpcPeer(peer: RpcPeer): void {
const peerin = this.worker.stdio[3] as Writable;
const peerout = this.worker.stdio[this.fork ? 3 : 4] as Readable;
const peerout = this.worker.stdio[4] as Readable;
const serializer = this.serializer = createRpcDuplexSerializer(peerin);
serializer.setupRpcPeer(peer);