don't publish disconnect event if no client id

This commit is contained in:
RaidMax 2022-06-14 15:00:23 -05:00
parent 2cff25d6b3
commit 9ab34614c5

View File

@ -29,7 +29,7 @@ namespace IW4MAdmin.Application.Misc
OnClientConnect?.Invoke(this, gameEvent);
}
if (gameEvent.Type == GameEvent.EventType.Disconnect)
if (gameEvent.Type == GameEvent.EventType.Disconnect && gameEvent.Origin.ClientId != 0)
{
OnClientDisconnect?.Invoke(this, gameEvent);
}