Skip to content

Commit

Permalink
still call callback on network error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Aug 18, 2023
1 parent 408d5cd commit 6bf7b88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cheevos/cheevos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion cheevos/cheevos_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6bf7b88

Please sign in to comment.