From 137df6b2c37577cf5e0bc0dd39f83742db3a98e3 Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Mon, 9 Dec 2024 17:22:02 -0300 Subject: [PATCH] adding limit --- BedrockServer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BedrockServer.cpp b/BedrockServer.cpp index ea610213e..cb8ace7fd 100644 --- a/BedrockServer.cpp +++ b/BedrockServer.cpp @@ -1163,6 +1163,12 @@ bool BedrockServer::_wouldCrash(const unique_ptr& 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) {