1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Add early abort to avoid sending empty lookup requests

This commit is contained in:
Dean Herbert 2021-12-01 17:47:16 +09:00
parent 81f82c24c3
commit bf5a186a2b
2 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,9 @@ namespace osu.Game.Database
}
}
if (beatmapTasks.Count == 0)
return;
// Query the beatmaps.
var request = new GetBeatmapsRequest(beatmapTasks.Keys.ToArray());

View File

@ -100,6 +100,9 @@ namespace osu.Game.Database
}
}
if (userTasks.Count == 0)
return;
// Query the users.
var request = new GetUsersRequest(userTasks.Keys.ToArray());