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:
parent
81f82c24c3
commit
bf5a186a2b
@ -102,6 +102,9 @@ namespace osu.Game.Database
|
||||
}
|
||||
}
|
||||
|
||||
if (beatmapTasks.Count == 0)
|
||||
return;
|
||||
|
||||
// Query the beatmaps.
|
||||
var request = new GetBeatmapsRequest(beatmapTasks.Keys.ToArray());
|
||||
|
||||
|
@ -100,6 +100,9 @@ namespace osu.Game.Database
|
||||
}
|
||||
}
|
||||
|
||||
if (userTasks.Count == 0)
|
||||
return;
|
||||
|
||||
// Query the users.
|
||||
var request = new GetUsersRequest(userTasks.Keys.ToArray());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user