mirror of https://github.com/ppy/osu
Fix room null-check racing against async schedule
This commit is contained in:
parent
78ac092147
commit
498462dfd0
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue