mirror of https://github.com/ppy/osu
Fix OAuth refresh attempt when no network available causing full logout
This commit is contained in:
parent
7d7fc09dbc
commit
3c62521e69
|
@ -99,9 +99,14 @@ internal bool AuthenticateWithRefresh(string refresh)
|
|||
return true;
|
||||
}
|
||||
}
|
||||
catch (HttpRequestException)
|
||||
{
|
||||
// Network failure.
|
||||
return false;
|
||||
}
|
||||
catch
|
||||
{
|
||||
//todo: potentially only kill the refresh token on certain exception types.
|
||||
// Force a full re-reauthentication.
|
||||
Token.Value = null;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue