diff --git a/QMPSharp/QMPClient.cs b/QMPSharp/QMPClient.cs index dc5f28a..c260c5d 100644 --- a/QMPSharp/QMPClient.cs +++ b/QMPSharp/QMPClient.cs @@ -203,7 +203,8 @@ public class QMPClient : IDisposable private void OnDisconnect() { - Disconnected.Invoke(this, new()); - Dispose(); + if (this._disposed) return; + Disconnected.Invoke(this, new()); + Dispose(); } } \ No newline at end of file