fixes #327 - Delete immediately update library

This commit is contained in:
Luke Pulverenti 2013-06-06 08:08:46 -04:00
parent adab6e21e5
commit 888d5ee836

View File

@ -295,7 +295,14 @@ namespace MediaBrowser.Api
/// Deletes the specified request.
/// </summary>
/// <param name="request">The request.</param>
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);