Sfoglia il codice sorgente

Added check if the server is started or not.

release/3.x.x
SeppPenner 4 anni fa
parent
commit
87c4fa14ee
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      Source/MQTTnet/Server/MqttServer.cs

+ 2
- 0
Source/MQTTnet/Server/MqttServer.cs Vedi File

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

public bool IsStarted => _cancellationTokenSource != null;

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


Caricamento…
Annulla
Salva