removed swallowed exceptions

This commit is contained in:
Luke Pulverenti
2013-05-28 13:32:50 -04:00
parent 969bc00098
commit 110d1e6fbe
5 changed files with 27 additions and 35 deletions

View File

@@ -145,6 +145,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
{
transaction.Rollback();
}
throw;
}
catch (Exception e)
{
@@ -154,6 +156,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
{
transaction.Rollback();
}
throw;
}
finally
{
@@ -228,7 +232,7 @@ namespace MediaBrowser.Server.Implementations.Sqlite
cmd.Transaction = transaction;
await ExecuteCommand(cmd).ConfigureAwait(false);
await cmd.ExecuteNonQueryAsync(cancellationToken).ConfigureAwait(false);
}
transaction.Commit();
@@ -239,6 +243,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
{
transaction.Rollback();
}
throw;
}
catch (Exception e)
{
@@ -248,6 +254,8 @@ namespace MediaBrowser.Server.Implementations.Sqlite
{
transaction.Rollback();
}
throw;
}
finally
{