aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-03 14:15:35 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-06-03 14:15:35 -0400
commit08d9004d8f361aaf13756cab70fc659e5fbb775c (patch)
tree1f96203035f37c4f35d7819edb2f50d15fea80f7 /MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs
parent59118a2ddbf31973873eef42ef18182300fe9a0c (diff)
a little more kernel consolidation
Diffstat (limited to 'MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs b/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs
index 297033cd6..6cd816e51 100644
--- a/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs
+++ b/MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs
@@ -49,7 +49,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
/// <param name="dbPath">The db path.</param>
/// <returns>Task{System.Boolean}.</returns>
/// <exception cref="System.ArgumentNullException">dbPath</exception>
- protected async Task ConnectToDb(string dbPath)
+ protected Task ConnectToDb(string dbPath)
{
if (string.IsNullOrEmpty(dbPath))
{
@@ -68,7 +68,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
Connection = new SQLiteConnection(connectionstr.ConnectionString);
- await Connection.OpenAsync().ConfigureAwait(false);
+ return Connection.OpenAsync();
}
/// <summary>
@@ -164,7 +164,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
{
throw new ArgumentNullException("reader");
}
-
+
var memoryStream = new MemoryStream();
var num = 0L;
var array = new byte[4096];