mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-26 08:02:59 +08:00
fixed managed client so it does not send disconnect packet when disposed
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user