mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Null Pointer fix
This commit is contained in:
parent
5592967497
commit
eafb8cf652
@ -27,13 +27,13 @@ namespace Rssdp.Infrastructure
|
||||
/// </summary>
|
||||
public SsdpDeviceLocator(ISsdpCommunicationsServer communicationsServer)
|
||||
{
|
||||
if (communicationsServer == null)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(communicationsServer));
|
||||
}
|
||||
|
||||
_CommunicationsServer = communicationsServer;
|
||||
|
||||
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…
x
Reference in New Issue
Block a user