mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Merge pull request #14065 from peppy/fix-broken-exception-handling
Fix incorrect authorisation loss exception handling with recent changes
This commit is contained in:
commit
e8d56b4ed0
@ -150,7 +150,7 @@ namespace osu.Game.Online.API
|
|||||||
|
|
||||||
userReq.Failure += ex =>
|
userReq.Failure += ex =>
|
||||||
{
|
{
|
||||||
if (ex.InnerException is WebException webException && webException.Message == @"Unauthorized")
|
if (ex is WebException webException && webException.Message == @"Unauthorized")
|
||||||
{
|
{
|
||||||
log.Add(@"Login no longer valid");
|
log.Add(@"Login no longer valid");
|
||||||
Logout();
|
Logout();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user