Removed unnecessary code.
This commit is contained in:
@@ -42,11 +42,10 @@ void Client::Update()
|
|||||||
|
|
||||||
void Client::Close()
|
void Client::Close()
|
||||||
{
|
{
|
||||||
if (m_WasStarted) {
|
disconnect();
|
||||||
disconnect();
|
m_ThreadIsRunning = false;
|
||||||
m_ThreadIsRunning = false;
|
m_Socket.close();
|
||||||
m_EventBroker->Unsubscribe(m_EInputCommand);
|
m_EventBroker->Unsubscribe(m_EInputCommand);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::readFromServer()
|
void Client::readFromServer()
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ void Server::Close()
|
|||||||
{
|
{
|
||||||
m_ThreadIsRunning = false;
|
m_ThreadIsRunning = false;
|
||||||
m_Socket.close();
|
m_Socket.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Server::readFromClients()
|
void Server::readFromClients()
|
||||||
|
|||||||
Reference in New Issue
Block a user