mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Null Pointer fix
This commit is contained in:
parent
5592967497
commit
eafb8cf652
1 changed files with 6 additions and 6 deletions
|
@ -27,13 +27,13 @@ namespace Rssdp.Infrastructure
|
|||
/// </summary>
|
||||
public SsdpDeviceLocator(ISsdpCommunicationsServer communicationsServer)
|
||||
{
|
||||
if (communicationsServer == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(communicationsServer));
|
||||
}
|
||||
|
||||
_CommunicationsServer = communicationsServer;
|
||||
_CommunicationsServer.ResponseReceived += CommsServer_ResponseReceived;
|
||||
|
||||
if (communicationsServer != null)
|
||||
{
|
||||
// This can occur is dlna is enabled, but defined to run over https.
|
||||
_CommunicationsServer.ResponseReceived += CommsServer_ResponseReceived;
|
||||
}
|
||||
|
||||
_Devices = new List<DiscoveredSsdpDevice>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue