Skip to content

Commit

Permalink
Fix client loading not aborting correctly in certain cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jan 23, 2024
1 parent 6df0de5 commit 13013d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/client/game.cpp
Expand Up @@ -1743,7 +1743,7 @@ bool Game::getServerContent(bool *aborted)
// End condition
if (client->mediaReceived() && client->itemdefReceived() &&
client->nodedefReceived()) {
break;
return true;
}

// Error conditions
Expand Down Expand Up @@ -1802,7 +1802,9 @@ bool Game::getServerContent(bool *aborted)
}
}

return true;
*aborted = true;
infostream << "Connect aborted [device]" << std::endl;
return false;
}


Expand Down

0 comments on commit 13013d1

Please sign in to comment.