Skip to content

Commit

Permalink
adding limit
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldoglas committed Dec 9, 2024
1 parent 164a5db commit 137df6b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions BedrockServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,12 @@ bool BedrockServer::_wouldCrash(const unique_ptr<BedrockCommand>& command) {
return false;
}

// If this command crashed with more than one set of identifying values, it means
// we've already crashed more than one node. Let's fully block this command in that case.
if (commandIt->second.size() > 1) {
return true;
}

// Look at each crash-inducing command that has the same methodLine.
for (const STable& values : commandIt->second) {

Expand Down

0 comments on commit 137df6b

Please sign in to comment.