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
commit e8d56b4ed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();