Actually disconnect from metadata hub when requested to

Nothing in this override, on in the base implementation, would actually
attempt to disconnect.
This commit is contained in:
Bartłomiej Dach 2024-02-16 12:58:50 +01:00
parent 171270d99c
commit 9fa60b169e
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -233,6 +233,8 @@ public override async Task DisconnectRequested()
{
await base.DisconnectRequested().ConfigureAwait(false);
await EndWatchingUserPresence().ConfigureAwait(false);
if (connector != null)
await connector.Disconnect().ConfigureAwait(false);
}
protected override void Dispose(bool isDisposing)