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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user