From ada98e381e1bb7f707bba03eecaa5312db667a01 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 14 Jun 2022 15:00:23 -0500 Subject: [PATCH] don't publish disconnect event if no client id --- Application/Misc/EventPublisher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Misc/EventPublisher.cs b/Application/Misc/EventPublisher.cs index a200bf0a..f28f70fc 100644 --- a/Application/Misc/EventPublisher.cs +++ b/Application/Misc/EventPublisher.cs @@ -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); } @@ -41,4 +41,4 @@ namespace IW4MAdmin.Application.Misc } } } -} \ No newline at end of file +}