Skip to content

Commit 6f85e09

Browse files
remove extra method
1 parent 4f7e9db commit 6f85e09

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

MediaBrowser.Dlna/Ssdp/SsdpHandler.cs

+2-10
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,7 @@ public void SendSearchMessage(EndPoint localIp)
139139
values["MX"] = "3";
140140

141141
// UDP is unreliable, so send 3 requests at a time (per Upnp spec, sec 1.1.2)
142-
SendDatagram("M-SEARCH * HTTP/1.1", values, localIp, 2);
143-
}
144-
145-
public void SendDatagram(string header,
146-
Dictionary<string, string> values,
147-
EndPoint localAddress,
148-
int sendCount)
149-
{
150-
SendDatagram(header, values, _ssdpEndp, localAddress, false, sendCount);
142+
SendDatagram("M-SEARCH * HTTP/1.1", values, _ssdpEndp, localIp, false, 2);
151143
}
152144

153145
public void SendDatagram(string header,
@@ -524,7 +516,7 @@ private void NotifyDevice(UpnpDevice dev, string type, int sendCount, bool logMe
524516
_logger.Debug("{0} said {1}", dev.USN, type);
525517
}
526518

527-
SendDatagram(header, values, new IPEndPoint(dev.Address, 0), sendCount);
519+
SendDatagram(header, values, _ssdpEndp, new IPEndPoint(dev.Address, 0), false, sendCount);
528520
}
529521

530522
public void RegisterNotification(Guid uuid, Uri descriptionUri, IPAddress address, IEnumerable<string> services)

0 commit comments

Comments
 (0)