Changing packet dispatch, packets dying on gateway and not being relayed, missed a nullable
This commit is contained in:
@@ -158,10 +158,10 @@ public sealed class MessageDispatcher : IMessageDispatcher
|
|||||||
if (!remote.HasResponse)
|
if (!remote.HasResponse)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
var payload = remote.ResponsePayload is { } element &&
|
JsonElement? payload = remote.ResponsePayload is { } element &&
|
||||||
element.ValueKind is not JsonValueKind.Undefined and not JsonValueKind.Null
|
element.ValueKind is not JsonValueKind.Undefined and not JsonValueKind.Null
|
||||||
? element
|
? element
|
||||||
: null;
|
: (JsonElement?)null;
|
||||||
|
|
||||||
return new ServerMessage(
|
return new ServerMessage(
|
||||||
remote.ResponseType ?? "error",
|
remote.ResponseType ?? "error",
|
||||||
|
|||||||
Reference in New Issue
Block a user