mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Fixing the bug with connections on database make restore fail (#473)
* closing the connections that don't need to be open and keeping track of the connections that should stay open
This commit is contained in:
@@ -174,7 +174,7 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectExplorer.SmoModel
|
||||
/// the only way to easily access is via the server object. This should be called during access of
|
||||
/// any of the object properties
|
||||
/// </summary>
|
||||
private void EnsureConnectionOpen(SmoObjectBase smoObj)
|
||||
public void EnsureConnectionOpen(SmoObjectBase smoObj)
|
||||
{
|
||||
if (!smoWrapper.IsConnectionOpen(smoObj))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user