Pārlūkot izejas kodu

Added check if the server is started or not.

release/3.x.x
SeppPenner pirms 4 gadiem
vecāks
revīzija
87c4fa14ee
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      Source/MQTTnet/Server/MqttServer.cs

+ 2
- 0
Source/MQTTnet/Server/MqttServer.cs Parādīt failu

@@ -190,6 +190,8 @@ namespace MQTTnet.Server
return _retainedMessagesManager?.ClearMessagesAsync();
}

public bool IsStarted => _cancellationTokenSource != null;

private Task OnHandleClient(IMqttChannelAdapter channelAdapter)
{
return _clientSessionsManager.HandleClientAsync(channelAdapter);


Notiek ielāde…
Atcelt
Saglabāt