Fixed bug where closing glwindow as client crashed.

Server bug is still present.
This commit is contained in:
Jocke
2015-12-09 13:37:02 +01:00
parent f83e217638
commit 0e6353dd79
4 changed files with 49 additions and 41 deletions
+3 -2
View File
@@ -41,15 +41,16 @@ Game::Game(int argc, char* argv[])
// TEMP: Invoke network
boost::thread workerThread(&Game::NetworkFunction, this);
m_LastTime = glfwGetTime();
}
Game::~Game()
{
// Call before to ensure that thread closes correctly.
m_Client.Close();
delete m_FrameStack;
delete m_EventBroker;
m_Client.Close();
}
void Game::Tick()