dont dispatch events when disposed
This commit is contained in:
parent
f0de933380
commit
cd42387f6e
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue