mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix client loading not aborting correctly in certain cases
This commit is contained in:
parent
6df0de565f
commit
13013d1b8b
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue