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
committed by Johannes Rieken
parent f66dd930e2
commit 7a4e3cd309
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;