Mark UserID free on regular disconnect
* Fixes userID inflation bug where it would incorrectly mark freed IDs as still used.
This commit is contained in:
parent
d39f93926f
commit
20be237daf
@ -171,7 +171,6 @@ void AOClient::clientDisconnected()
|
|||||||
if (l_updateLocks)
|
if (l_updateLocks)
|
||||||
arup(ARUPType::LOCKED, true);
|
arup(ARUPType::LOCKED, true);
|
||||||
arup(ARUPType::CM, true);
|
arup(ARUPType::CM, true);
|
||||||
|
|
||||||
emit clientSuccessfullyDisconnected(m_id);
|
emit clientSuccessfullyDisconnected(m_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -609,6 +609,7 @@ void Server::hookupAOClient(AOClient *client)
|
|||||||
connect(client, &AOClient::logBan, logger, &ULogger::logBan);
|
connect(client, &AOClient::logBan, logger, &ULogger::logBan);
|
||||||
connect(client, &AOClient::logKick, logger, &ULogger::logKick);
|
connect(client, &AOClient::logKick, logger, &ULogger::logKick);
|
||||||
connect(client, &AOClient::logModcall, logger, &ULogger::logModcall);
|
connect(client, &AOClient::logModcall, logger, &ULogger::logModcall);
|
||||||
|
connect(client, &AOClient::clientSuccessfullyDisconnected, this, &Server::markIDFree);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Server::increasePlayerCount()
|
void Server::increasePlayerCount()
|
||||||
|
Loading…
Reference in New Issue
Block a user