From d1a555cce78cd11cfd0fe2d1fba89350731e15a0 Mon Sep 17 00:00:00 2001 From: dingo Date: Sat, 28 Feb 2026 15:14:36 -0500 Subject: [PATCH] Changing packet dispatch, packets dying on gateway and not being relayed, missed a nullable --- Server/src/SOR.Gateway/Dispatch/MessageDispatcher.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/src/SOR.Gateway/Dispatch/MessageDispatcher.cs b/Server/src/SOR.Gateway/Dispatch/MessageDispatcher.cs index ddd659c..74b9628 100644 --- a/Server/src/SOR.Gateway/Dispatch/MessageDispatcher.cs +++ b/Server/src/SOR.Gateway/Dispatch/MessageDispatcher.cs @@ -158,10 +158,10 @@ public sealed class MessageDispatcher : IMessageDispatcher if (!remote.HasResponse) return null; - var payload = remote.ResponsePayload is { } element && - element.ValueKind is not JsonValueKind.Undefined and not JsonValueKind.Null + JsonElement? payload = remote.ResponsePayload is { } element && + element.ValueKind is not JsonValueKind.Undefined and not JsonValueKind.Null ? element - : null; + : (JsonElement?)null; return new ServerMessage( remote.ResponseType ?? "error",