mirror of
https://github.com/ppy/osu.git
synced 2026-05-28 07:12:12 +08:00
Fix locking on incorrect object
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
This commit is contained in:
committed by
GitHub
Unverified
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;
|
||||
|
||||
Reference in New Issue
Block a user