dont dispatch events when disposed
This commit is contained in:
parent
f0de933380
commit
cd42387f6e
1 changed files with 3 additions and 2 deletions
|
@ -203,6 +203,7 @@ public class QMPClient : IDisposable
|
||||||
|
|
||||||
private void OnDisconnect()
|
private void OnDisconnect()
|
||||||
{
|
{
|
||||||
|
if (this._disposed) return;
|
||||||
Disconnected.Invoke(this, new());
|
Disconnected.Invoke(this, new());
|
||||||
Dispose();
|
Dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue