still call callback on network error (#15614)

This commit is contained in:
Jamiras 2023-08-17 19:29:46 -06:00 committed by GitHub
parent ede69b4b6b
commit ee7735f82e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -1939,8 +1939,7 @@ static void rcheevos_initialize_runtime_callback(void* userdata)
static void rcheevos_fetch_game_data(void)
{
if ( rcheevos_locals.load_info.state
== RCHEEVOS_LOAD_STATE_NETWORK_ERROR)
if (rcheevos_load_aborted())
{
rcheevos_locals.game.hash = NULL;
rcheevos_pause_hardcore();

View file

@ -531,7 +531,7 @@ static void rcheevos_async_end_request(rcheevos_async_io_request* request)
{
rc_api_destroy_request(&request->request);
if (request->callback && !rcheevos_load_aborted())
if (request->callback)
request->callback(request->callback_data);
/* rich presence request will be reused on next ping - reset the attempt