fix(multiplayer): fix fetch beatmap when creating room

This commit is contained in:
MingxuanGame
2025-08-08 12:00:06 +00:00
parent 0ac4f1f516
commit 5bf733a94e

View File

@@ -204,8 +204,9 @@ class MultiplayerHub(Hub[MultiplayerClientState]):
if not beatmap_exists.one():
fetcher = await get_fetcher()
try:
resp = await fetcher.get_beatmap(item.beatmap_id)
await Beatmap.from_resp(session, resp)
await Beatmap.get_or_fetch(
session, fetcher, bid=item.beatmap_id
)
except HTTPError:
raise InvokeException(
"Failed to fetch beatmap, please retry later"