mirror of
https://github.com/ppy/osu
synced 2024-12-16 20:05:41 +00:00
Prevent removal of expired items in TestMultiplayerClient
This commit is contained in:
parent
8398f86440
commit
4df2047a58
@ -361,6 +361,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
if (item.OwnerID != userId)
|
||||
throw new InvalidOperationException("Attempted to remove an item which is not owned by the user.");
|
||||
|
||||
if (item.Expired)
|
||||
throw new InvalidOperationException("Attempted to remove an item which has already been played");
|
||||
|
||||
serverSidePlaylist.Remove(item);
|
||||
await ((IMultiplayerClient)this).PlaylistItemRemoved(playlistItemId).ConfigureAwait(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user