From e258675eabc874d31bc9c6cf49e4bbc1f7f3f417 Mon Sep 17 00:00:00 2001 From: sapier Date: Fri, 31 Jan 2014 00:24:00 +0100 Subject: 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 --- src/clientmedia.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/clientmedia.cpp') diff --git a/src/clientmedia.cpp b/src/clientmedia.cpp index 8260d5f5a..dcae44023 100644 --- a/src/clientmedia.cpp +++ b/src/clientmedia.cpp @@ -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 file_requests; -- cgit v1.2.3