Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): provider sessions clean up when their start is interrupted #15571

Mergedjuliusmarmingemerged 17 commits intomain fromrefs/pull/15571/headmerged by juliusmarminge View on GitHub

Showing 10 changed files with 86 additions and 77 deletions (loading 7).

x
0 of 10 viewed, 10 left
81 additions and 75 deletionsapps/server/src/device/LocalDeviceHost.tsModified
View file
@@ -383,62 +383,63 @@
const origin = `http://127.0.0.1:${port}`;
const scope = yield* Scope.make("sequential");
- const child = yield* spawner
- .spawn(
- ChildProcess.make(
- nodePath,
- [
- hubTool.entryPath,
- "--port",
- String(port),
- "--host",
- "127.0.0.1",
- "--hide-sidebar",
- "--hide-boot-device",
- ],
- {
- detached: false,
- shell: false,
- stdout: "pipe",
- stderr: "pipe",
- env: yield* hubEnvironment(hostEnvironment).pipe(
- Effect.provideService(FileSystem.FileSystem, fs),
- Effect.provideService(HostProcessPlatform, hostPlatform),
- ),
- },
- ),
- )
- .pipe(