Skip to content

Commit 02e3517

Browse files
clear previous values of PublishDataRequest FFI Request object (#150)
1 parent fcccfce commit 02e3517

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Runtime/Scripts/Participant.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ private unsafe void PublishData(byte* data, int len, IReadOnlyCollection<string>
332332

333333
var publish = request.request;
334334
publish.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle();
335+
336+
// Clear previous values of conditional fields
337+
publish.DestinationIdentities.Clear();
338+
publish.ClearTopic();
339+
335340
publish.Reliable = reliable;
336341

337342
if (destination_identities is not null)

0 commit comments

Comments
 (0)