aboutsummaryrefslogtreecommitdiff
path: root/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mono.Nat/Upnp/Searchers/UpnpSearcher.cs')
-rw-r--r--Mono.Nat/Upnp/Searchers/UpnpSearcher.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs b/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs
index 5e36410c5..d9b16dd81 100644
--- a/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs
+++ b/Mono.Nat/Upnp/Searchers/UpnpSearcher.cs
@@ -39,6 +39,7 @@ using System.Net.NetworkInformation;
using MediaBrowser.Common.Net;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Dlna;
+using System.Threading.Tasks;
namespace Mono.Nat
{
@@ -61,7 +62,7 @@ namespace Mono.Nat
{
}
- public void Handle(IPAddress localAddress, UpnpDeviceInfo deviceInfo, IPEndPoint endpoint)
+ public async Task Handle(IPAddress localAddress, UpnpDeviceInfo deviceInfo, IPEndPoint endpoint)
{
// No matter what, this method should never throw an exception. If something goes wrong
// we should still be in a position to handle the next reply correctly.
@@ -82,6 +83,8 @@ namespace Mono.Nat
UpnpNatDevice d = new UpnpNatDevice(localAddress, deviceInfo, endpoint, string.Empty, _logger, _httpClient);
NatUtility.Log("Fetching service list: {0}", d.HostEndPoint);
+ await d.GetServicesList().ConfigureAwait(false);
+
OnDeviceFound(new DeviceEventArgs(d));
}
catch (Exception ex)