mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 05:22:54 +08:00
Fix locking on incorrect object
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
parent
6b139d4cf3
commit
76e1f6e57b
@ -162,7 +162,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
finally
|
||||
{
|
||||
// The task will be awaited in the future, so reset it so that the user doesn't get into a permanently faulted state if anything fails.
|
||||
lock (joinOrLeaveTask)
|
||||
lock (joinOrLeaveTaskLock)
|
||||
{
|
||||
if (joinOrLeaveTask == newTask)
|
||||
joinOrLeaveTask = null;
|
||||
@ -212,7 +212,7 @@ namespace osu.Game.Online.Multiplayer
|
||||
finally
|
||||
{
|
||||
// The task will be awaited in the future, so reset it so that the user doesn't get into a permanently faulted state if anything fails.
|
||||
lock (joinOrLeaveTask)
|
||||
lock (joinOrLeaveTaskLock)
|
||||
{
|
||||
if (joinOrLeaveTask == newTask)
|
||||
joinOrLeaveTask = null;
|
||||
|
Loading…
Reference in New Issue
Block a user