mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add propper client initialization
-add client states to avoid server sending data to uninitialized clients -don't show uninitialized clients to other players -propper client disconnect handling Minor comment fixes in server Minor bugfixes in connection -improved peer id calculation -honor NDEBUG flag -improved disconnect handling -increased initial send window Remove some dead code
This commit is contained in:
parent
21f1bec724
commit
e258675eab
10 changed files with 1818 additions and 1609 deletions
|
@ -480,13 +480,7 @@ void ClientMediaDownloader::startConventionalTransfers(Client *client)
|
|||
{
|
||||
assert(m_httpfetch_active == 0);
|
||||
|
||||
if (m_uncached_received_count == m_uncached_count) {
|
||||
// In this case all media was found in the cache or
|
||||
// has been downloaded from some remote server;
|
||||
// report this fact to the server
|
||||
client->received_media();
|
||||
}
|
||||
else {
|
||||
if (m_uncached_received_count != m_uncached_count) {
|
||||
// Some media files have not been received yet, use the
|
||||
// conventional slow method (minetest protocol) to get them
|
||||
std::list<std::string> file_requests;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue