瀏覽代碼

Added check if the server is started or not.

release/3.x.x
SeppPenner 4 年之前
父節點
當前提交
87c4fa14ee
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      Source/MQTTnet/Server/MqttServer.cs

+ 2
- 0
Source/MQTTnet/Server/MqttServer.cs 查看文件

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

public bool IsStarted => _cancellationTokenSource != null;

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


Loading…
取消
儲存