mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 10:33:07 +08:00
Fix WatchUser being called asynchronously in BDL
This commit is contained in:
parent
2896da499d
commit
5a8b8782d3
@ -55,8 +55,6 @@ namespace osu.Game.Screens.Play.HUD
|
||||
|
||||
foreach (var userId in playingUsers)
|
||||
{
|
||||
spectatorClient.WatchUser(userId);
|
||||
|
||||
// probably won't be required in the final implementation.
|
||||
var resolvedUser = userLookupCache.GetUserAsync(userId).Result;
|
||||
|
||||
@ -80,6 +78,8 @@ namespace osu.Game.Screens.Play.HUD
|
||||
// BindableList handles binding in a really bad way (Clear then AddRange) so we need to do this manually..
|
||||
foreach (int userId in playingUsers)
|
||||
{
|
||||
spectatorClient.WatchUser(userId);
|
||||
|
||||
if (!multiplayerClient.CurrentMatchPlayingUserIds.Contains(userId))
|
||||
usersChanged(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Remove, new[] { userId }));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user