Skip to content

Commit

Permalink
Change one back to InvalidStateException
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Feb 1, 2024
1 parent 575bd58 commit eec735b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Server.Spectator/Hubs/Multiplayer/MultiplayerHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private async Task<ServerMultiplayerRoom> 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");
Expand Down

0 comments on commit eec735b

Please sign in to comment.