dont dispatch events when disposed

This commit is contained in:
Elijah R 2024-04-13 11:29:28 -04:00
parent f0de933380
commit cd42387f6e

View file

@ -203,6 +203,7 @@ public class QMPClient : IDisposable
private void OnDisconnect()
{
if (this._disposed) return;
Disconnected.Invoke(this, new());
Dispose();
}