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

@ -130,18 +130,7 @@ namespace MediaBrowser.Providers.Movies
foreach (var id in list) foreach (var id in list)
{ {
try await UpdateMovie(id, moviesDataPath, cancellationToken).ConfigureAwait(false);
{
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++; numComplete++;
double percent = numComplete; double percent = numComplete;

View File

@ -144,18 +144,7 @@ namespace MediaBrowser.Providers.Music
foreach (var id in list) foreach (var id in list)
{ {
try await UpdateArtist(id, artistsDataPath, cancellationToken).ConfigureAwait(false);
{
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++; numComplete++;
double percent = numComplete; double percent = numComplete;

View File

@ -145,18 +145,7 @@ namespace MediaBrowser.Providers.TV
foreach (var id in list) foreach (var id in list)
{ {
try await UpdateSeries(id, seriesDataPath, cancellationToken).ConfigureAwait(false);
{
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++; numComplete++;
double percent = numComplete; double percent = numComplete;