Removed Close method from Client, Server and Network.

Removed legacy variable m_ThreadIsRunning in Client.h and Server.h.
Removed m_EventBroker->Unsubscribe(m_EInputCommand) in Client destructor.
This commit is contained in:
Jocke
2016-01-12 17:47:03 +01:00
parent 56ac592d6d
commit 2284399538
5 changed files with 0 additions and 23 deletions
-9
View File
@@ -17,7 +17,6 @@ Client::Client(ConfigFile* config) : m_Socket(m_IOService)
Client::~Client()
{
m_EventBroker->Unsubscribe(m_EInputCommand);
}
void Client::Start(World* world, EventBroker* eventBroker)
@@ -38,14 +37,6 @@ void Client::Update()
readFromServer();
}
void Client::Close()
{
disconnect();
m_ThreadIsRunning = false;
m_Socket.close();
m_EventBroker->Unsubscribe(m_EInputCommand);
}
void Client::readFromServer()
{
while (m_Socket.available()) {