diff --git a/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs b/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs index a999d070..bf750e5e 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/Connection/ConnectionService.cs @@ -1049,35 +1049,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection { try { - bool disconnect = false; - if (connection.ConnectionString != null) - { - int totalCount = 0; - foreach (KeyValuePair entry in OwnerToConnectionMap) - { - foreach (DbConnection value in entry.Value.AllConnections) - { - if (value.ConnectionString == connection.ConnectionString) - { - totalCount++; - } - } - } - - if (totalCount == 1) - { - disconnect = true; - } - } - else - { - disconnect = true; - } - - if (disconnect) - { - connection.Close(); - } + connection.Close(); } catch (Exception) {