use hard disconnect insteadof clientkick

This commit is contained in:
Lion Kortlepel
2024-05-11 12:17:02 +02:00
parent 0c740ccedf
commit 9f47978f0f

View File

@@ -76,7 +76,7 @@ void TPPSMonitor::operator()() {
return true;
});
for (auto& ClientToKick : TimedOutClients) {
Network().ClientKick(*ClientToKick, "Timeout (no ping for way too long)");
ClientToKick->Disconnect("Timeout");
}
TimedOutClients.clear();
if (C == 0 || mInternalPPS == 0) {