1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 01:37:46 +08:00

Fix incorrect authorisation loss exception handling with recent changes

This commit is contained in:
Dean Herbert 2021-07-30 18:11:35 +09:00
parent 877490fa8d
commit 185ea776f5

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