No longer use the server list md5, it caused only trouble, and the serverlist .z file is small enough to be downloaded each time (#95).

This commit is contained in:
lotodore
2012-01-08 18:47:30 +00:00
parent 54cf862217
commit 2cdb5ce215
4 changed files with 17 additions and 152 deletions
-28
View File
@@ -107,34 +107,6 @@ protected:
ClientStateStartServerListDownload();
};
// State: Synchronizing server list.
class ClientStateSynchronizingServerList : public ClientState
{
public:
// Access the state singleton.
static ClientStateSynchronizingServerList &Instance();
virtual ~ClientStateSynchronizingServerList();
virtual void Enter(boost::shared_ptr<ClientThread> client);
virtual void Exit(boost::shared_ptr<ClientThread> client);
virtual void HandlePacket(boost::shared_ptr<ClientThread> /*client*/, boost::shared_ptr<NetPacket> /*tmpPacket*/) {}
void SetDownloadHelper(boost::shared_ptr<DownloadHelper> helper);
protected:
// Protected constructor - this is a singleton.
ClientStateSynchronizingServerList();
// Poll for the completion of the download.
void TimerLoop(const boost::system::error_code& ec, boost::shared_ptr<ClientThread> client);
private:
boost::shared_ptr<DownloadHelper> m_downloadHelper;
};
// State: Downloading the server list.
class ClientStateDownloadingServerList : public ClientState
{