1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-26 17:17:18 +08:00
Dean Herbert c78b5112c6
Fix OAuth refresh attempt when no network available causing full logout (part 2)
This time for `SocketException`s. I seem to recall looking at this and
deciding there was a reason to not catch socket exceptions, but on
revisiting it seems sane to do so.

This covers a fail case like reported:

```
2023-10-06 03:24:17 [verbose]: Request to https://lazer.ppy.sh/oauth/token failed with System.Net.Http.HttpRequestException: No such host is known. (lazer.ppy.sh:443)
2023-10-06 03:24:17 [verbose]: ---> System.Net.Sockets.SocketException (11001): No such host is known.
2023-10-06 03:24:17 [verbose]: at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
```

Closes https://github.com/ppy/osu/issues/24890 (again).
2023-10-06 18:24:22 +09:00
..
2023-06-24 01:00:03 +09:00
2023-07-06 13:37:43 +09:00
2023-06-24 01:00:03 +09:00
2022-11-27 00:00:27 +09:00
2022-11-02 11:44:16 +09:00
2022-11-27 00:00:27 +09:00
2022-11-02 13:16:34 +09:00
2022-11-27 00:00:27 +09:00
2023-06-24 01:00:03 +09:00