Fix room null-check racing against async schedule

This commit is contained in:
Bartłomiej Dach 2021-08-14 17:24:14 +02:00
parent 78ac092147
commit 498462dfd0
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
1 changed files with 1 additions and 2 deletions

View File

@ -190,8 +190,7 @@ public Task LeaveRoom()
return joinOrLeaveTaskChain.Add(async () =>
{
await scheduledReset.ConfigureAwait(false);
if (Room != null)
await LeaveRoomInternal().ConfigureAwait(false);
await LeaveRoomInternal().ConfigureAwait(false);
});
}