From 346013315fa76eaefccc36919f1ed102747bd67a Mon Sep 17 00:00:00 2001 From: worldspawn Date: Sun, 18 Oct 2026 09:58:19 -0600 Subject: [PATCH 1/2] Do not error when failing to read NetChannel message --- Source.Engine/NetChannel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source.Engine/NetChannel.cs b/Source.Engine/NetChannel.cs index 9c49d21af..1adcfd2ec 100644 --- a/Source.Engine/NetChannel.cs +++ b/Source.Engine/NetChannel.cs @@ -875,8 +875,8 @@ public bool ProcessMessages(bf_read buf) { int msgStartBit = buf.BitsRead; if (!netMsg.ReadFromBuffer(buf)) { - Error($"NetChannel: failed reading message {msgName} from {RemoteAddress}\n"); - Assert(false); + Warning($"NetChannel: failed reading message {msgName} from {RemoteAddress}\n"); + //Assert(false); return false; } From 6a8485325bff1503cdfe90b95e10a5853977b6b4 Mon Sep 17 00:00:00 2001 From: worldspawn Date: Sun, 18 Oct 2026 12:24:06 -0600 Subject: [PATCH 2/2] Remove commented out Asserts --- Source.Engine/NetChannel.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source.Engine/NetChannel.cs b/Source.Engine/NetChannel.cs index 1adcfd2ec..085640dba 100644 --- a/Source.Engine/NetChannel.cs +++ b/Source.Engine/NetChannel.cs @@ -876,7 +876,6 @@ public bool ProcessMessages(bf_read buf) { int msgStartBit = buf.BitsRead; if (!netMsg.ReadFromBuffer(buf)) { Warning($"NetChannel: failed reading message {msgName} from {RemoteAddress}\n"); - //Assert(false); return false; } @@ -925,7 +924,6 @@ public bool ProcessMessages(bf_read buf) { } else { Warning($"NetChannel: unknown net message ({cmd}) from {RemoteAddress}.\n"); - //Assert(false); return false; } }