fix: break out of loop when condition is met

This commit is contained in:
Future 2024-05-04 19:06:26 +02:00
parent 479f6fcbf3
commit 89f29244ac
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -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()); console::log("Removing server '%s' (%s) because it contains a bad name", server.name.data(), context.get_address().to_string().data());
context.remove(); context.remove();
break;
} }
} }
}); });