Log when encountering an erroneous user cull without a quit.

This commit is contained in:
Sadie Powell 2023-06-12 01:06:24 +01:00
parent e2f0ff0981
commit cafe18b10e

View File

@ -336,7 +336,11 @@ void UserIOHandler::OnError(BufferedSocketError sockerr)
Cullable::Result User::Cull() Cullable::Result User::Cull()
{ {
if (!quitting) if (!quitting)
{
ServerInstance->Logs.Debug("CULLLIST", "BUG: User {} (@{}) was culled without being quit first!",
uuid, fmt::ptr(this));
ServerInstance->Users.QuitUser(this, "Culled without QuitUser"); ServerInstance->Users.QuitUser(this, "Culled without QuitUser");
}
if (client_sa.family() != AF_UNSPEC) if (client_sa.family() != AF_UNSPEC)
ServerInstance->Users.RemoveCloneCounts(this); ServerInstance->Users.RemoveCloneCounts(this);