瀏覽代碼

Refactoring.

release/3.x.x
Christian Kratky 5 年之前
父節點
當前提交
8bfbbd2b29
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      Source/MQTTnet/Client/MqttClient.cs

+ 4
- 4
Source/MQTTnet/Client/MqttClient.cs 查看文件

@@ -257,12 +257,12 @@ namespace MQTTnet.Client
{
var clientWasConnected = IsConnected;

InitiateDisconnect();

IsConnected = false;
TryInitiateDisconnect();

try
{
IsConnected = false;

if (_adapter != null)
{
_logger.Verbose("Disconnecting [Timeout={0}]", Options.CommunicationTimeout);
@@ -295,7 +295,7 @@ namespace MQTTnet.Client
}
}

private void InitiateDisconnect()
private void TryInitiateDisconnect()
{
lock (_disconnectLock)
{


Loading…
取消
儲存