From ff1ef67dccefb8d283142ea86db250f07aee095c Mon Sep 17 00:00:00 2001 From: red-001 Date: Wed, 26 Apr 2017 20:10:13 +0100 Subject: Fix #5655 (#5658) Client: Don't send `TOSERVER_RECEIVED_MEDIA` since it's not used anymore Server: Handle `TOSERVER_RECEIVED_MEDIA` using `Server::handleCommand_Deprecated` --- src/client.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 19fe9b0ba..019693f1d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -526,7 +526,6 @@ void Client::step(float dtime) if (m_media_downloader && m_media_downloader->isStarted()) { m_media_downloader->step(this); if (m_media_downloader->isDone()) { - received_media(); delete m_media_downloader; m_media_downloader = NULL; } @@ -747,14 +746,6 @@ void Client::request_media(const std::vector &file_requests) << file_requests.size() << " files. packet size)" << std::endl; } -void Client::received_media() -{ - NetworkPacket pkt(TOSERVER_RECEIVED_MEDIA, 0); - Send(&pkt); - infostream << "Client: Notifying server that we received all media" - << std::endl; -} - void Client::initLocalMapSaving(const Address &address, const std::string &hostname, bool is_local_server) -- cgit v1.2.3