fix(electrobun): remove double subscribe — CreateSession already auto-subscribes
This commit is contained in:
parent
621e1c5c8c
commit
05b3093945
2 changed files with 2 additions and 2 deletions
|
|
@ -231895,7 +231895,6 @@ var rpc = BrowserView.defineRPC({
|
|||
}
|
||||
try {
|
||||
ptyClient.createSession({ id: sessionId, cols, rows, cwd });
|
||||
ptyClient.subscribe(sessionId);
|
||||
return { ok: true };
|
||||
} catch (err) {
|
||||
const error2 = err instanceof Error ? err.message : String(err);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,8 @@ const rpc = BrowserView.defineRPC<PtyRPCSchema>({
|
|||
}
|
||||
try {
|
||||
ptyClient.createSession({ id: sessionId, cols, rows, cwd });
|
||||
ptyClient.subscribe(sessionId);
|
||||
// Don't call subscribe() — CreateSession already auto-subscribes
|
||||
// the creating client and starts a fanout task.
|
||||
return { ok: true };
|
||||
} catch (err) {
|
||||
const error = err instanceof Error ? err.message : String(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue