diff --git a/src/net/common/serverlobbythread.cpp b/src/net/common/serverlobbythread.cpp index 6b09d6c6..be5b059d 100644 --- a/src/net/common/serverlobbythread.cpp +++ b/src/net/common/serverlobbythread.cpp @@ -1448,8 +1448,10 @@ ServerLobbyThread::HandleNetPacketRejectGameInvitation(boost::shared_ptrsecond; unsigned tmpPlayerId = session->GetPlayerData()->GetUniqueId(); if (game.IsPlayerInvited(tmpPlayerId)) { - // If he rejects, he is no longer invited. - game.RemovePlayerInvitation(tmpPlayerId); + // If he actively rejects, he is no longer invited. + if (reject.myRejectReason == RejectGameInvReason_no) { + game.RemovePlayerInvitation(tmpPlayerId); + } // Send reject notification. boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); packet->GetMsg()->present = PokerTHMessage_PR_rejectInvNotifyMessage;