Skip to content

Commit ba51b18

Browse files
committed
[BUG FIX] Dispose of database connection if it can't be opened
1 parent 28056e1 commit ba51b18

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

rls/packages/API.Library.6.1.22.nupkg

77 KB
Binary file not shown.

rls/packages/API.Library.6.1.23.nupkg

77 KB
Binary file not shown.

src/API.Library/API.Library.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<PackageId>API.Library</PackageId>
1313
<Product>API Library</Product>
1414
<Copyright>Central Statistics Office, Ireland</Copyright>
15-
<Version>6.1.22</Version>
15+
<Version>6.1.23</Version>
1616
<Authors>Central Statistics Office, Ireland</Authors>
1717
<SignAssembly>False</SignAssembly>
1818
<RepositoryUrl>https://github.com/CSOIreland/Server-API-Library</RepositoryUrl>
1919
<PackageReleaseNotes>
20-
[ENHANCEMENT] Ensure Stateless flag functions as designed for session management
20+
[BUG FIX] Dispose of database connection if it cant't be opened
2121
</PackageReleaseNotes>
2222
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
2323
<RestoreLockedMode>true</RestoreLockedMode>

src/API.Library/Entities/ADO.cs

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

0 commit comments

Comments
 (0)