fixes #335 - Tasks Stalled

This commit is contained in:
Luke Pulverenti 2013-06-11 10:06:08 -04:00
parent 78c7e79b61
commit 150c74ece1
3 changed files with 3 additions and 36 deletions

View File

@ -129,19 +129,8 @@ namespace MediaBrowser.Providers.Movies
var numComplete = 0;
foreach (var id in list)
{
try
{
await UpdateMovie(id, moviesDataPath, cancellationToken).ConfigureAwait(false);
}
catch (HttpException ex)
{
// Already logged at lower levels, but don't fail the whole operation, unless something other than a timeout
if (!ex.IsTimedOut)
{
throw;
}
}
numComplete++;
double percent = numComplete;

View File

@ -143,19 +143,8 @@ namespace MediaBrowser.Providers.Music
var numComplete = 0;
foreach (var id in list)
{
try
{
await UpdateArtist(id, artistsDataPath, cancellationToken).ConfigureAwait(false);
}
catch (HttpException ex)
{
// Already logged at lower levels, but don't fail the whole operation, unless something other than a timeout
if (!ex.IsTimedOut)
{
throw;
}
}
numComplete++;
double percent = numComplete;

View File

@ -144,19 +144,8 @@ namespace MediaBrowser.Providers.TV
var numComplete = 0;
foreach (var id in list)
{
try
{
await UpdateSeries(id, seriesDataPath, cancellationToken).ConfigureAwait(false);
}
catch (HttpException ex)
{
// Already logged at lower levels, but don't fail the whole operation, unless something other than a timeout
if (!ex.IsTimedOut)
{
throw;
}
}
numComplete++;
double percent = numComplete;