mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 22:30:53 +08:00
Fix cancelled webrequests triggering exceptions
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user