Browse Source

fixed managed client so it does not send disconnect packet when disposed

release/3.x.x
JanEggers 5 years ago
parent
commit
a152066ed3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Source/MQTTnet/Internal/Disposable.cs

+ 3
- 2
Source/MQTTnet/Internal/Disposable.cs View File

@@ -44,12 +44,13 @@ namespace MQTTnet.Internal
{
return;
}

_isDisposed = true;

// Do not change this code. Put cleanup code in Dispose(bool disposing) above.
Dispose(true);
// TODO: uncomment the following line if the finalizer is overridden above.
// GC.SuppressFinalize(this);

_isDisposed = true;
}
#endregion
}


Loading…
Cancel
Save