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,7 +203,8 @@ public class QMPClient : IDisposable
private void OnDisconnect() private void OnDisconnect()
{ {
Disconnected.Invoke(this, new()); if (this._disposed) return;
Dispose(); Disconnected.Invoke(this, new());
Dispose();
} }
} }