1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:07:44 +08:00

Fix cancelled webrequests triggering exceptions

This commit is contained in:
smoogipoo 2018-12-26 21:11:31 +09:00
parent 9368054d47
commit bee4e8ad28

View File

@ -92,7 +92,11 @@ namespace osu.Game.Online.API
public void Fail(Exception e)
{
if (cancelled) return;
if (WebRequest?.Completed == true)
return;
if (cancelled)
return;
cancelled = true;
WebRequest?.Abort();