From 888d5ee83609063e43002a61587672d11e3f8a9e Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 6 Jun 2013 08:08:46 -0400 Subject: [PATCH] fixes #327 - Delete immediately update library --- MediaBrowser.Api/LibraryService.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index 4e7c19a33..f048c92bf 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -295,7 +295,14 @@ namespace MediaBrowser.Api /// Deletes the specified request. /// /// The request. - public async void Delete(DeleteItem request) + public void Delete(DeleteItem request) + { + var task = DeleteItem(request); + + Task.WaitAll(task); + } + + private async Task DeleteItem(DeleteItem request) { var item = DtoBuilder.GetItemByClientId(request.Id, _userManager, _libraryManager);