Fix client loading not aborting correctly in certain cases

This commit is contained in:
sfan5 2024-01-19 20:14:54 +01:00
parent 6df0de565f
commit 13013d1b8b
1 changed files with 4 additions and 2 deletions

View File

@ -1743,7 +1743,7 @@ bool Game::getServerContent(bool *aborted)
// End condition // End condition
if (client->mediaReceived() && client->itemdefReceived() && if (client->mediaReceived() && client->itemdefReceived() &&
client->nodedefReceived()) { client->nodedefReceived()) {
break; return true;
} }
// Error conditions // Error conditions
@ -1802,7 +1802,9 @@ bool Game::getServerContent(bool *aborted)
} }
} }
return true; *aborted = true;
infostream << "Connect aborted [device]" << std::endl;
return false;
} }