mirror of
https://github.com/osukey/osukey.git
synced 2025-06-24 04:38:02 +09: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
|
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.
|
// 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)
|
if (joinOrLeaveTask == newTask)
|
||||||
joinOrLeaveTask = null;
|
joinOrLeaveTask = null;
|
||||||
@ -212,7 +212,7 @@ namespace osu.Game.Online.Multiplayer
|
|||||||
finally
|
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.
|
// 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)
|
if (joinOrLeaveTask == newTask)
|
||||||
joinOrLeaveTask = null;
|
joinOrLeaveTask = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user