Fixing issue #134: Ignore additional join game messages if the player already joined a game.

This commit is contained in:
lotodore
2012-06-08 22:07:55 +02:00
parent 546f8c7ab5
commit d8de1944e5
+2
View File
@@ -361,6 +361,8 @@ AbstractServerGameStateReceiving::ProcessPacket(boost::shared_ptr<ServerGame> se
} else if (packet->GetMsg()->present == PokerTHMessage_PR_reportGameMessage) {
// Delegate to Lobby.
server->GetLobbyThread().HandleGameReportGame(session, packet->GetMsg()->choice.reportGameMessage);
} else if (packet->GetMsg()->present == PokerTHMessage_PR_joinGameRequestMessage) {
// Ignore join game requests in this state (may be multiple clicks from the lobby).
} else {
// Packet processing in subclass.
InternalProcessPacket(server, session, packet);