diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-05-11 22:52:22 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-05-11 22:52:22 -0400 |
| commit | 6c6ea6083cae62c2713f9c2b565ac4a40c533c00 (patch) | |
| tree | f22eb7d7ec1a57c7c27cf554b32bdac4c4fe1be6 | |
| parent | 343c7615a2e09eadc21ddd928e3883032128b339 (diff) | |
remove extra method
| -rw-r--r-- | MediaBrowser.Dlna/Ssdp/SsdpHandler.cs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs b/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs index 59c455d39..e6e9624d5 100644 --- a/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs +++ b/MediaBrowser.Dlna/Ssdp/SsdpHandler.cs @@ -139,15 +139,7 @@ namespace MediaBrowser.Dlna.Ssdp values["MX"] = "3"; // UDP is unreliable, so send 3 requests at a time (per Upnp spec, sec 1.1.2) - SendDatagram("M-SEARCH * HTTP/1.1", values, localIp, 2); - } - - public void SendDatagram(string header, - Dictionary<string, string> values, - EndPoint localAddress, - int sendCount) - { - SendDatagram(header, values, _ssdpEndp, localAddress, false, sendCount); + SendDatagram("M-SEARCH * HTTP/1.1", values, _ssdpEndp, localIp, false, 2); } public void SendDatagram(string header, @@ -524,7 +516,7 @@ namespace MediaBrowser.Dlna.Ssdp _logger.Debug("{0} said {1}", dev.USN, type); } - SendDatagram(header, values, new IPEndPoint(dev.Address, 0), sendCount); + SendDatagram(header, values, _ssdpEndp, new IPEndPoint(dev.Address, 0), false, sendCount); } public void RegisterNotification(Guid uuid, Uri descriptionUri, IPAddress address, IEnumerable<string> services) |
