mirror of
https://github.com/osukey/osukey.git
synced 2025-06-27 14:18:06 +09:00
Merge pull request #3921 from smoogipoo/fix-webrequest-cancellation
Fix cancelling completed webrequests throwing exceptions
This commit is contained in:
commit
a2885a99cc
@ -92,7 +92,11 @@ namespace osu.Game.Online.API
|
|||||||
|
|
||||||
public void Fail(Exception e)
|
public void Fail(Exception e)
|
||||||
{
|
{
|
||||||
if (cancelled) return;
|
if (WebRequest?.Completed == true)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (cancelled)
|
||||||
|
return;
|
||||||
|
|
||||||
cancelled = true;
|
cancelled = true;
|
||||||
WebRequest?.Abort();
|
WebRequest?.Abort();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user