Use hard disconnect instead of ClientKick in timeout (#320)

This commit is contained in:
Lion
2024-05-11 13:00:25 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

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) {