Skip to content

Commit

Permalink
Merge pull request #161 from BSVino/fix-vote-race-condition
Browse files Browse the repository at this point in the history
Fix a race condition in the vote kick system
  • Loading branch information
TomyLobo authored Dec 24, 2020
2 parents b7f86d6 + 35ed08b commit e64b07a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mp/src/game/shared/sdk/sdk_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3204,6 +3204,7 @@ class CKickPlayerVoteIssue : public CDAIssue
}

engine->ServerCommand(UTIL_VarArgs( "banid 30 %s kick\n", networkIDString.String() ));
engine->ServerCommand(UTIL_VarArgs( "kickid %s\n", networkIDString.String() ));
engine->ServerCommand("writeip\n");
engine->ServerCommand("writeid\n");
}
Expand Down

0 comments on commit e64b07a

Please sign in to comment.