diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-23 10:46:16 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-11-23 10:46:16 -0500 |
| commit | 4f09c1e06dab7cc8b260129648f5a54c77b8a4f9 (patch) | |
| tree | 84666fd94143a2078c4ad2500301cd0c21a94c61 /Emby.Server.Implementations/Social/SharingManager.cs | |
| parent | 77695f8abed3156de04c6bb2496c14a2ab3d90a8 (diff) | |
reduce dlna chatter
Diffstat (limited to 'Emby.Server.Implementations/Social/SharingManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Social/SharingManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Social/SharingManager.cs b/Emby.Server.Implementations/Social/SharingManager.cs index 57cf93948..e94b9100a 100644 --- a/Emby.Server.Implementations/Social/SharingManager.cs +++ b/Emby.Server.Implementations/Social/SharingManager.cs @@ -5,6 +5,7 @@ using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Library; using MediaBrowser.Model.Social; using System; +using System.Threading; using System.Threading.Tasks; namespace Emby.Server.Implementations.Social @@ -42,7 +43,7 @@ namespace Emby.Server.Implementations.Social throw new ResourceNotFoundException(); } - var externalUrl = (await _appHost.GetSystemInfo().ConfigureAwait(false)).WanAddress; + var externalUrl = (await _appHost.GetSystemInfo(CancellationToken.None).ConfigureAwait(false)).WanAddress; if (string.IsNullOrWhiteSpace(externalUrl)) { @@ -73,7 +74,7 @@ namespace Emby.Server.Implementations.Social { var info = _repository.GetShareInfo(id); - AddShareInfo(info, _appHost.GetSystemInfo().Result.WanAddress); + AddShareInfo(info, _appHost.GetSystemInfo(CancellationToken.None).Result.WanAddress); return info; } |
