mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-31 12:16:22 +01:00
Fix auto forward cache (#185997)
This commit is contained in:
@@ -743,7 +743,7 @@ export class TunnelModel extends Disposable {
|
||||
async close(host: string, port: number, reason: TunnelCloseReason): Promise<void> {
|
||||
const key = makeAddress(host, port);
|
||||
const oldTunnel = this.forwarded.get(key)!;
|
||||
if (reason === TunnelCloseReason.AutoForwardEnd) {
|
||||
if ((reason === TunnelCloseReason.AutoForwardEnd) && oldTunnel && (oldTunnel.source.source === TunnelSource.Auto)) {
|
||||
this.sessionCachedProperties.set(key, {
|
||||
local: oldTunnel.localPort,
|
||||
name: oldTunnel.name,
|
||||
|
||||
Reference in New Issue
Block a user