Fix multiplayer score submission failing silently

This commit is contained in:
smoogipoo
2019-06-16 00:31:14 +09:00
parent c46ddb5a5d
commit d693b2a329
2 changed files with 6 additions and 2 deletions

View File

@ -262,8 +262,9 @@ namespace osu.Game.Online.API
handleWebException(we); handleWebException(we);
return false; return false;
} }
catch catch (Exception ex)
{ {
Logger.Error(ex, "Error occurred while handling an API request.");
return false; return false;
} }
} }

View File

@ -30,7 +30,10 @@ namespace osu.Game.Online.API.Requests
req.ContentType = "application/json"; req.ContentType = "application/json";
req.Method = HttpMethod.Put; req.Method = HttpMethod.Put;
req.AddRaw(JsonConvert.SerializeObject(scoreInfo)); req.AddRaw(JsonConvert.SerializeObject(scoreInfo, new JsonSerializerSettings
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
}));
return req; return req;
} }