From 150c74ece1b4d91c079502081da4aee67e82b7d5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 11 Jun 2013 10:06:08 -0400 Subject: [PATCH] fixes #335 - Tasks Stalled --- .../Movies/FanArtMovieUpdatesPrescanTask.cs | 13 +------------ .../Music/FanArtUpdatesPrescanTask.cs | 13 +------------ .../TV/FanArtTvUpdatesPrescanTask.cs | 13 +------------ 3 files changed, 3 insertions(+), 36 deletions(-) diff --git a/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPrescanTask.cs b/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPrescanTask.cs index 2498f90cd..51d3e3edf 100644 --- a/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPrescanTask.cs +++ b/MediaBrowser.Providers/Movies/FanArtMovieUpdatesPrescanTask.cs @@ -130,18 +130,7 @@ namespace MediaBrowser.Providers.Movies 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; - } - } + await UpdateMovie(id, moviesDataPath, cancellationToken).ConfigureAwait(false); numComplete++; double percent = numComplete; diff --git a/MediaBrowser.Providers/Music/FanArtUpdatesPrescanTask.cs b/MediaBrowser.Providers/Music/FanArtUpdatesPrescanTask.cs index 37324db50..51a74c0ff 100644 --- a/MediaBrowser.Providers/Music/FanArtUpdatesPrescanTask.cs +++ b/MediaBrowser.Providers/Music/FanArtUpdatesPrescanTask.cs @@ -144,18 +144,7 @@ namespace MediaBrowser.Providers.Music 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; - } - } + await UpdateArtist(id, artistsDataPath, cancellationToken).ConfigureAwait(false); numComplete++; double percent = numComplete; diff --git a/MediaBrowser.Providers/TV/FanArtTvUpdatesPrescanTask.cs b/MediaBrowser.Providers/TV/FanArtTvUpdatesPrescanTask.cs index 6bd905c85..154fc7bfd 100644 --- a/MediaBrowser.Providers/TV/FanArtTvUpdatesPrescanTask.cs +++ b/MediaBrowser.Providers/TV/FanArtTvUpdatesPrescanTask.cs @@ -145,18 +145,7 @@ namespace MediaBrowser.Providers.TV 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; - } - } + await UpdateSeries(id, seriesDataPath, cancellationToken).ConfigureAwait(false); numComplete++; double percent = numComplete;