aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-11-26 19:44:38 -0500
committerGitHub <noreply@github.com>2016-11-26 19:44:38 -0500
commit45b7d8cbeefbdea186f37579327da6dd9b8310fe (patch)
tree434fa3d1540d2adf09374e43a4de35638eedccce /MediaBrowser.Api/Library/LibraryService.cs
parentb9841d2428add47c982c33d0eb2fabf3df4198ca (diff)
parent75c71df2954a530982978e16dfe8b2891270cf5d (diff)
Merge pull request #2310 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryService.cs17
1 files changed, 10 insertions, 7 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs
index 695718a25..15c1cbe82 100644
--- a/MediaBrowser.Api/Library/LibraryService.cs
+++ b/MediaBrowser.Api/Library/LibraryService.cs
@@ -680,14 +680,17 @@ namespace MediaBrowser.Api.Library
/// <param name="request">The request.</param>
public void Post(RefreshLibrary request)
{
- try
- {
- _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
- }
- catch (Exception ex)
+ Task.Run(() =>
{
- Logger.ErrorException("Error refreshing library", ex);
- }
+ try
+ {
+ _libraryManager.ValidateMediaLibrary(new Progress<double>(), CancellationToken.None);
+ }
+ catch (Exception ex)
+ {
+ Logger.ErrorException("Error refreshing library", ex);
+ }
+ });
}
/// <summary>