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()
{
if (m_WasStarted) {
disconnect();
m_ThreadIsRunning = false;
m_EventBroker->Unsubscribe(m_EInputCommand);
}
disconnect();
m_ThreadIsRunning = false;
m_Socket.close();
m_EventBroker->Unsubscribe(m_EInputCommand);
}
void Client::readFromServer()