From fcfe02ee7370b6462d995bb8c37aaebf3abd31e7 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Wed, 6 Feb 2019 22:40:49 +0100 Subject: [PATCH] Add await to GetCountries in LocalizationService --- MediaBrowser.Api/LocalizationService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Api/LocalizationService.cs b/MediaBrowser.Api/LocalizationService.cs index 3b2e18852..1524c8d26 100644 --- a/MediaBrowser.Api/LocalizationService.cs +++ b/MediaBrowser.Api/LocalizationService.cs @@ -2,6 +2,7 @@ using MediaBrowser.Controller.Net; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Globalization; using MediaBrowser.Model.Services; +using System.Threading.Tasks; namespace MediaBrowser.Api { @@ -81,9 +82,9 @@ namespace MediaBrowser.Api /// /// The request. /// System.Object. - public object Get(GetCountries request) + public async Task Get(GetCountries request) { - var result = _localization.GetCountries(); + var result = await _localization.GetCountries(); return ToOptimizedResult(result); }