mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-27 19:24:47 +03:00
Code Clean up: Convert to null-coalescing operator ?? (#5845)
Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
This commit is contained in:
@@ -415,10 +415,7 @@ namespace Rssdp.Infrastructure
|
||||
{
|
||||
lock (_SendSocketSynchroniser)
|
||||
{
|
||||
if (_sendSockets == null)
|
||||
{
|
||||
_sendSockets = CreateSocketAndListenForResponsesAsync();
|
||||
}
|
||||
_sendSockets ??= CreateSocketAndListenForResponsesAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user