Fix timing issue where port detection can fail to start

This commit is contained in:
Alex Ross
2021-06-15 14:08:59 +02:00
parent 9d4274bf64
commit fe8bb48c19
3 changed files with 9 additions and 0 deletions

View File

@@ -57,6 +57,9 @@ export class MainThreadTunnelService extends Disposable implements MainThreadTun
return this._proxy.$registerCandidateFinder(this.processFindingEnabled());
}
}));
this._register(this.tunnelService.onAddedTunnelProvider(() => {
return this._proxy.$registerCandidateFinder(this.processFindingEnabled());
}));
}
private _alreadyRegistered: boolean = false;