Reconnect is now possible.

This commit is contained in:
Jocke
2016-02-10 21:02:46 +01:00
parent 95fa1f4bbd
commit ec54b1298d
5 changed files with 19 additions and 3 deletions
+2
View File
@@ -302,6 +302,8 @@ void Server::disconnect(PlayerID playerID)
e.PlayerID = playerID;
m_EventBroker->Publish(e);
m_ConnectedPlayers[playerID].TCPSocket->shutdown(boost::asio::ip::tcp::socket::shutdown_both);
m_ConnectedPlayers[playerID].TCPSocket->close();
m_ConnectedPlayers.erase(playerID);
}