mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00:00
Fix multiplayer score submission failing silently
This commit is contained in:
parent
c46ddb5a5d
commit
d693b2a329
@ -262,8 +262,9 @@ namespace osu.Game.Online.API
|
||||
handleWebException(we);
|
||||
return false;
|
||||
}
|
||||
catch
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.Error(ex, "Error occurred while handling an API request.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,10 @@ namespace osu.Game.Online.API.Requests
|
||||
req.ContentType = "application/json";
|
||||
req.Method = HttpMethod.Put;
|
||||
|
||||
req.AddRaw(JsonConvert.SerializeObject(scoreInfo));
|
||||
req.AddRaw(JsonConvert.SerializeObject(scoreInfo, new JsonSerializerSettings
|
||||
{
|
||||
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
|
||||
}));
|
||||
|
||||
return req;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user