mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-03 17:27:47 +00:00
* Better fix for logout issue
This commit is contained in:
parent
497f555eb4
commit
91b8aec97d
1 changed files with 2 additions and 1 deletions
|
@ -292,8 +292,9 @@ void Core::ServerZone::mainLoop()
|
||||||
auto pPlayer = it->second->getPlayer();
|
auto pPlayer = it->second->getPlayer();
|
||||||
|
|
||||||
// remove session of players marked for removel ( logoff / kick )
|
// 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() )
|
// if( it->second.unique() )
|
||||||
{
|
{
|
||||||
g_log.info("[" + std::to_string(it->second->getId() ) + "] Session removal" );
|
g_log.info("[" + std::to_string(it->second->getId() ) + "] Session removal" );
|
||||||
|
|
Loading…
Add table
Reference in a new issue