Skip to content

Commit f07b2be

Browse files
committed
Mark scores unranked when processing is aborted
To prevent them from showing up in places they shouldn't.
1 parent f68f62a commit f07b2be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

osu.Server.Queues.ScoreStatisticsProcessor/ScoreStatisticsQueueProcessor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ private void processScore(ScoreItem item, bool force = false)
245245
Console.WriteLine($"Aborting processing of score {item.Score.id}: {abortException.Message}");
246246
tags.Add("type:aborted");
247247
transaction.Rollback();
248+
conn.Execute("UPDATE `scores` SET `ranked` = 0 WHERE `id` = @scoreId", new { scoreId = score.id });
248249
return;
249250
}
250251

0 commit comments

Comments
 (0)