Skip to content

Commit 3d02e74

Browse files
committed
Reset existing terminal isActive when activated again
This is useful, because it allows the UI to know when it's next reactivated, and so better detect success.
1 parent 952a266 commit 3d02e74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interceptors/terminal/existing-terminal-interceptor.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export class ExistingTerminalInterceptor implements Interceptor {
3535

3636
async activate(proxyPort: number): Promise<{ port: number }> {
3737
if (this.servers[proxyPort]) {
38+
// Reset isActive, so we wait again for a new request
39+
this.servers[proxyPort].isActive = false;
3840
return { port: this.servers[proxyPort].server.port };
3941
}
4042

0 commit comments

Comments
 (0)