Added more rejection packets, revised some logic

This commit is contained in:
Kayne Ruse
2014-09-10 16:06:01 +10:00
parent 2c06232264
commit 17b9eb7ad4
6 changed files with 43 additions and 28 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ void ServerApplication::Proc() {
//TODO: This could be checked only every few seconds
//Check connections
for (auto& it : clientMap) {
if (std::chrono::steady_clock::now() - it.second.GetLastBeat() > std::chrono::seconds(5)) {
if (std::chrono::steady_clock::now() - it.second.GetLastBeat() > std::chrono::seconds(3)) {
ServerPacket newPacket;
newPacket.type = SerialPacketType::PING;
network.SendTo(it.second.GetAddress(), &newPacket);