From 89f29244accb1348777c3f81c914e7935e2359e1 Mon Sep 17 00:00:00 2001 From: Future Date: Sat, 4 May 2024 19:06:26 +0200 Subject: [PATCH] fix: break out of loop when condition is met --- src/services/elimination_handler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/elimination_handler.cpp b/src/services/elimination_handler.cpp index def0d60..7f60b75 100644 --- a/src/services/elimination_handler.cpp +++ b/src/services/elimination_handler.cpp @@ -59,6 +59,7 @@ void elimination_handler::run_frame() { console::log("Removing server '%s' (%s) because it contains a bad name", server.name.data(), context.get_address().to_string().data()); context.remove(); + break; } } });