Set callback ID to ID of packet, not client instance
This commit is contained in:
parent
2d22b1599d
commit
6bcd8043c1
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue