Fix some connection listener leaks (#6357)

* Fix some connection listener leaks

* More descriptive name and update summary

* Dispose some more connections and fix a few spelling errors
This commit is contained in:
Charles Gagnon
2019-07-29 11:00:11 -07:00
committed by GitHub
parent 1d56a17f32
commit 86cde4c511
9 changed files with 66 additions and 28 deletions

View File

@@ -691,7 +691,10 @@ export class ConnectionManagementService extends Disposable implements IConnecti
}
public hasRegisteredServers(): boolean {
return this.doHasRegisteredServers(this.getConnectionGroups());
const groups: ConnectionProfileGroup[] = this.getConnectionGroups();
const hasRegisteredServers: boolean = this.doHasRegisteredServers(groups);
groups.forEach(cpg => cpg.dispose());
return hasRegisteredServers;
}
private doHasRegisteredServers(root: ConnectionProfileGroup[]): boolean {