Get correct candidate for checking port attributes providers

This commit is contained in:
Alex Ross 2021-03-16 17:39:17 +01:00
parent fd57115d52
commit b12279b40c
No known key found for this signature in database
GPG key ID: 89DDDBA66CBA7840

View file

@ -645,7 +645,7 @@ export class TunnelModel extends Disposable {
const allProviderResults = await Promise.all(flatten(this.portAttributesProviders.map(provider => {
return Array.from(pidToPortsMapping.entries()).map(entry => {
const portGroup = entry[1];
const matchingCandidate = matchingCandidates.get(portGroup[1]);
const matchingCandidate = matchingCandidates.get(portGroup[0]);
return provider.providePortAttributes(portGroup,
matchingCandidate?.pid, matchingCandidate?.detail, new CancellationTokenSource().token);
});