mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 09:35:38 -05:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user