back to lobby state when server ends
This commit is contained in:
@@ -122,8 +122,8 @@ void ServerGame::OnGameClose() {
|
||||
protocol::DisconnectPacket packet("Game finished");
|
||||
m_Server->BroadcastPacket(&packet);
|
||||
|
||||
// Closing server
|
||||
m_Server->Close();
|
||||
// Put back to lobby state
|
||||
m_Server->Restart();
|
||||
}
|
||||
|
||||
} // namespace game
|
||||
|
||||
Reference in New Issue
Block a user