add debug print on timeout kick

This commit is contained in:
Lion Kortlepel committed 2021-03-30 14:58:19 +02:00
1 parent 704e25636d
commit e73d578797
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -47,6 +47,7 @@ void TPPSMonitor::operator()() {
return true;
});
for (auto& ClientToKick : TimedOutClients) {
debug("client " + std::string("(") + std::to_string(ClientToKick->GetID()) + ")" + ClientToKick->GetName() + " kicked due to timeout!");
Network().ClientKick(*ClientToKick, "Timeout (no ping for >10 seconds)");
}
TimedOutClients.clear();