Skip to content

Commit

Permalink
Enhanced replay download error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Jul 11, 2021
1 parent aca7ffd commit fa67e0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bot.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ void onReplayDownloadResponse(struct triceBot *b,
const Response *resp,
void *param) {
// If resp is NULL the request timed out.
if (resp == NULL) {
if (resp == NULL || !resp->HasExtension(Response_ReplayDownload::ext)) {
int replayID = *(int *) param;
printf("[ERROR]: Replay %d failed to download.\n",
replayID);
Expand Down
2 changes: 1 addition & 1 deletion src/game_struct.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void freeGameCreateCallbackWaitParam(struct gameCreateCallbackWaitParam *gp) {
}
}

//Not thread safe version
// Not thread safe version
static void freeGameListNodeNTS(struct gameListNode *gl) {
if (gl != NULL) {
if (gl->currentGame != NULL) {
Expand Down

0 comments on commit fa67e0a

Please sign in to comment.