From eec735b2af7b3f0c5a4f7382c9ffde107fafb6fe Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Thu, 1 Feb 2024 20:27:23 +0900 Subject: [PATCH] Change one back to InvalidStateException --- osu.Server.Spectator/Hubs/Multiplayer/MultiplayerHub.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Server.Spectator/Hubs/Multiplayer/MultiplayerHub.cs b/osu.Server.Spectator/Hubs/Multiplayer/MultiplayerHub.cs index dfe8a917..23c8b42c 100644 --- a/osu.Server.Spectator/Hubs/Multiplayer/MultiplayerHub.cs +++ b/osu.Server.Spectator/Hubs/Multiplayer/MultiplayerHub.cs @@ -179,7 +179,7 @@ private async Task retrieveRoom(long roomId) throw new InvalidOperationException("Specified match does not exist."); if (databaseRoom.ends_at != null && databaseRoom.ends_at < DateTimeOffset.Now) - throw new InvalidOperationException("Match has already ended."); + throw new InvalidStateException("Match has already ended."); if (databaseRoom.user_id != Context.GetUserId()) throw new InvalidOperationException("Non-host is attempting to join match before host");