mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 03:24:33 +08:00
Enable nullable
This commit is contained in:
@@ -12,7 +12,7 @@ namespace MQTTnet.Server.Internal.Adapter;
|
||||
|
||||
public sealed class MqttTcpServerAdapter : IMqttServerAdapter
|
||||
{
|
||||
readonly List<MqttTcpServerListener> _listeners = new List<MqttTcpServerListener>();
|
||||
readonly List<MqttTcpServerListener> _listeners = new();
|
||||
|
||||
CancellationTokenSource _cancellationTokenSource;
|
||||
|
||||
|
||||
@@ -165,8 +165,8 @@ public sealed class MqttTcpServerListener : IDisposable
|
||||
|
||||
async Task TryHandleClientConnectionAsync(CrossPlatformSocket clientSocket)
|
||||
{
|
||||
Stream stream = null;
|
||||
EndPoint remoteEndPoint = null;
|
||||
Stream? stream = null;
|
||||
EndPoint? remoteEndPoint = null;
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user