diff options
| author | Stepan Goremykin <goremukin@gmail.com> | 2023-10-08 00:46:15 +0200 |
|---|---|---|
| committer | Stepan Goremykin <goremukin@gmail.com> | 2023-10-08 00:46:15 +0200 |
| commit | 47254d6a2236e079af3cc8c2e37c77d9d1479235 (patch) | |
| tree | f1093a9f9111c36479306c688ee75cd503c7dd4c /Emby.Server.Implementations/Net | |
| parent | 526f9a825c8205942155759afc5fc1e7a8f6fc6a (diff) | |
Remove conditional access when it is known to be not null
Diffstat (limited to 'Emby.Server.Implementations/Net')
| -rw-r--r-- | Emby.Server.Implementations/Net/SocketFactory.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Net/SocketFactory.cs b/Emby.Server.Implementations/Net/SocketFactory.cs index 3091398b7..8478fbc4a 100644 --- a/Emby.Server.Implementations/Net/SocketFactory.cs +++ b/Emby.Server.Implementations/Net/SocketFactory.cs @@ -29,7 +29,7 @@ namespace Emby.Server.Implementations.Net } catch { - socket?.Dispose(); + socket.Dispose(); throw; } @@ -55,7 +55,7 @@ namespace Emby.Server.Implementations.Net } catch { - socket?.Dispose(); + socket.Dispose(); throw; } @@ -97,7 +97,7 @@ namespace Emby.Server.Implementations.Net } catch { - socket?.Dispose(); + socket.Dispose(); throw; } |
