Set callback ID to ID of packet, not client instance

This commit is contained in:
Oliver Booth 2022-07-08 13:40:48 +01:00
parent 2d22b1599d
commit 6bcd8043c1
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ public abstract class BaseClientNode : Node
var requestPacket = packetToSend as RequestPacket;
if (requestPacket is not null)
requestPacket.CallbackId = _callbackIdGenerator.GetId(this, out _);
requestPacket.CallbackId = _callbackIdGenerator.GetId(packetToSend, out _);
var completionSource = new TaskCompletionSource<Packet>();
if (!_packetCompletionSources.TryGetValue(attribute.Id, out List<TaskCompletionSource<Packet>>? completionSources))