Don't disconnect when game is over

This commit is contained in:
2023-08-14 14:25:10 +02:00
parent 7986e55846
commit 60b81003c0
3 changed files with 19 additions and 15 deletions

View File

@@ -54,9 +54,9 @@ void Server::StartThread() {
void Server::Restart() {
m_Game.Reset();
m_Game.SetGameState(game::GameState::Lobby);
m_Lobby.OpenLobby();
m_Game.NotifyListeners(&game::GameListener::OnGameStateUpdate, game::GameState::Lobby);
}
void Server::Close() {