aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-12-17 03:30:26 -0500
committerGitHub <noreply@github.com>2016-12-17 03:30:26 -0500
commit799fbd6f32790e9289c3a5a20ff0d90f2de0cca2 (patch)
treef86dd9ea91f3d01d3a963d8c36e087c3ec539ede /Emby.Server.Implementations/Data/BaseSqliteRepository.cs
parent12f46d961b9b3b3857e1c2beadd4464f0e4e19cc (diff)
parentcc73830cd6df7049281df6e43615096a5b47ccb4 (diff)
Merge pull request #2346 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Data/BaseSqliteRepository.cs')
-rw-r--r--Emby.Server.Implementations/Data/BaseSqliteRepository.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
index 206422176..64a0d889e 100644
--- a/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
+++ b/Emby.Server.Implementations/Data/BaseSqliteRepository.cs
@@ -286,7 +286,10 @@ namespace Emby.Server.Implementations.Data
{
if (_connection != null)
{
- _connection.Close();
+ using (_connection)
+ {
+
+ }
_connection = null;
}