Removed unnecessary code.

This commit is contained in:
Jocke
2016-01-06 13:49:54 +01:00
parent f0ad28bac4
commit 6c13916eec
2 changed files with 4 additions and 6 deletions
+4 -5
View File
@@ -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()
-1
View File
@@ -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()