Explorar el Código

Refactoring.

release/3.x.x
Christian Kratky hace 5 años
padre
commit
8bfbbd2b29
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. +4
    -4
      Source/MQTTnet/Client/MqttClient.cs

+ 4
- 4
Source/MQTTnet/Client/MqttClient.cs Ver fichero

@@ -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)
{


Cargando…
Cancelar
Guardar