Skip to content

Commit cd9bf14

Browse files
committed
Dispose of database connection if it cant't be opened
1 parent a27bbc6 commit cd9bf14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/API.Library/API.Library.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageId>API.Library</PackageId>
1313
<Product>API Library</Product>
1414
<Copyright>Central Statistics Office, Ireland</Copyright>
15-
<Version>6.1.23</Version>
15+
<Version>6.1.24</Version>
1616
<Authors>Central Statistics Office, Ireland</Authors>
1717
<SignAssembly>False</SignAssembly>
1818
<RepositoryUrl>https://github.com/CSOIreland/Server-API-Library</RepositoryUrl>

src/API.Library/Entities/ADO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void OpenConnection(string connectionName)
102102
catch (Exception e)
103103
{
104104
Log.Instance.Fatal(e);
105-
connection.Dispose();
105+
Dispose();
106106
throw;
107107
}
108108
}

0 commit comments

Comments
 (0)