diff --git a/src/servers/Server_Zone/ServerZone.cpp b/src/servers/Server_Zone/ServerZone.cpp index d9b4f2f2..67a47dd9 100644 --- a/src/servers/Server_Zone/ServerZone.cpp +++ b/src/servers/Server_Zone/ServerZone.cpp @@ -292,8 +292,9 @@ void Core::ServerZone::mainLoop() auto pPlayer = it->second->getPlayer(); // remove session of players marked for removel ( logoff / kick ) - if( pPlayer->isMarkedForRemoval() && diff > 1 ) + if( pPlayer->isMarkedForRemoval() && diff > 5 ) { + it->second->close(); // if( it->second.unique() ) { g_log.info("[" + std::to_string(it->second->getId() ) + "] Session removal" );