From d7791db5b3017f0a7c27866babf1d1fa1b98c119 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 19 May 2013 16:06:25 -0400 Subject: [PATCH] better detail page spacing for mobile --- .../Providers/Movies/MovieDbProvider.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs index 3abe6d4df8..adbc4241f9 100644 --- a/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs @@ -162,6 +162,13 @@ namespace MediaBrowser.Controller.Providers.Movies await _tmdbSettingsSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false); + // Check again in case it got populated while we were waiting. + if (_tmdbSettings != null) + { + _tmdbSettingsSemaphore.Release(); + return _tmdbSettings; + } + try { using (var json = await GetMovieDbResponse(new HttpRequestOptions