mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
forwarding: fix tearing down process too early (#190081)
This commit is contained in:
parent
1094b5d065
commit
a0e56dcea7
|
@ -276,7 +276,11 @@ class TunnelProvider implements vscode.TunnelProvider {
|
|||
try {
|
||||
const l: { port_format: string } = JSON.parse(line);
|
||||
if (l.port_format && l.port_format !== lastPortFormat) {
|
||||
this.state = { state: State.Active, portFormat: l.port_format, process };
|
||||
this.state = {
|
||||
state: State.Active,
|
||||
portFormat: l.port_format, process,
|
||||
cleanupTimeout: 'cleanupTimeout' in this.state ? this.state.cleanupTimeout : undefined,
|
||||
};
|
||||
progressP.complete();
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue