mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +09:00
Prevent removal of expired items in TestMultiplayerClient
This commit is contained in:
@ -361,6 +361,9 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
if (item.OwnerID != userId)
|
if (item.OwnerID != userId)
|
||||||
throw new InvalidOperationException("Attempted to remove an item which is not owned by the user.");
|
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);
|
serverSidePlaylist.Remove(item);
|
||||||
await ((IMultiplayerClient)this).PlaylistItemRemoved(playlistItemId).ConfigureAwait(false);
|
await ((IMultiplayerClient)this).PlaylistItemRemoved(playlistItemId).ConfigureAwait(false);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user