From 08d9004d8f361aaf13756cab70fc659e5fbb775c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 3 Jun 2013 14:15:35 -0400 Subject: a little more kernel consolidation --- MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Sqlite/SQLiteRepository.cs') 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 /// The db path. /// Task{System.Boolean}. /// dbPath - 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(); } /// @@ -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]; -- cgit v1.2.3