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

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