Skip to content

Commit 604840e

Browse files
committed
fix(link): keep runtime publication through its record builder
1 parent e4c3df5 commit 604840e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/client/runtime.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function clientRuntimeRecord(
9999
port: number,
100100
attestationSecret: string = createLocalAttestationSecret(),
101101
): RuntimePortState {
102-
return { pid, port, hostname: "127.0.0.1", attestationSecret, ...siblingRuntimeField() };
102+
return { pid, port, hostname: "127.0.0.1", attestationSecret, ...siblingRuntimeField(), ...(clientStopping ? { clientStopping: true as const } : {}) };
103103
}
104104

105105
export function standaloneRecycleEnv(
@@ -370,7 +370,7 @@ export async function startClientRuntime(
370370
supervisor?.start();
371371
credentialObservation ??= observeLocalCredentials();
372372
writePid(process.pid);
373-
writeRuntimePort({ ...clientRuntimeRecord(process.pid, boundPort, attestationSecret), ...(clientStopping ? { clientStopping: true as const } : {}) });
373+
writeRuntimePort(clientRuntimeRecord(process.pid, boundPort, attestationSecret));
374374
if (linkMode && state.value.link && linkKey) {
375375
activeReporter = createLinkParityReporter({ connection: state.value, linkKey, runtimeStartedAt: CLIENT_RUNTIME_STARTED_AT });
376376
activeReporter.start();

0 commit comments

Comments
 (0)