1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-30 01:05:02 +08: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:
Dan Balasescu
2021-07-30 19:53:21 +09:00
committed by GitHub
Unverified
+1 -1
View File
@@ -150,7 +150,7 @@ namespace osu.Game.Online.API
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");
Logout();