浏览代码

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);


正在加载...
取消
保存