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

This commit is contained in:
JanEggers
2020-01-04 11:54:41 +01:00
parent 138cd16c8d
commit a152066ed3
+3 -2
View File
@@ -44,12 +44,13 @@ namespace MQTTnet.Internal
{ {
return; return;
} }
_isDisposed = true;
// Do not change this code. Put cleanup code in Dispose(bool disposing) above. // Do not change this code. Put cleanup code in Dispose(bool disposing) above.
Dispose(true); Dispose(true);
// TODO: uncomment the following line if the finalizer is overridden above. // TODO: uncomment the following line if the finalizer is overridden above.
// GC.SuppressFinalize(this); // GC.SuppressFinalize(this);
_isDisposed = true;
} }
#endregion #endregion
} }