Rename session close to stop

This commit is contained in:
Federico Jaramillo Martinez
2026-05-07 13:05:32 +02:00
parent ad05497319
commit fa55723246
7 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -108,11 +108,11 @@ export class PiSessionService {
if (active) await active.runtime.session.abort();
}
close(sessionId: string): void {
stop(sessionId: string): void {
const active = this.active.get(sessionId);
if (!active) return;
active.unsubscribe();
void active.runtime.dispose();
void active.runtime.session.abort().finally(() => active.runtime.dispose());
this.active.delete(sessionId);
}