aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2021-04-15 07:39:59 -0600
committerGitHub <noreply@github.com>2021-04-15 15:39:59 +0200
commitb63f615fd4f92f40394d04c9ae764b35aadc000d (patch)
treece3a6bf4e4fbe8abe63a4d59a6df407b22760e18 /Emby.Server.Implementations
parent91d6ffd731e163bf281348872c2421598fa4edb2 (diff)
Enable nullability for ServerDiscoveryInfo (#5804)
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/Udp/UdpServer.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/Udp/UdpServer.cs b/Emby.Server.Implementations/Udp/UdpServer.cs
index d01184e0b..db5265e79 100644
--- a/Emby.Server.Implementations/Udp/UdpServer.cs
+++ b/Emby.Server.Implementations/Udp/UdpServer.cs
@@ -53,12 +53,7 @@ namespace Emby.Server.Implementations.Udp
if (!string.IsNullOrEmpty(localUrl))
{
- var response = new ServerDiscoveryInfo
- {
- Address = localUrl,
- Id = _appHost.SystemId,
- Name = _appHost.FriendlyName
- };
+ var response = new ServerDiscoveryInfo(localUrl, _appHost.SystemId, _appHost.FriendlyName);
try
{