Skip to content

Commit 632cbf7

Browse files
committed
SnapshotHolders: strip subscription IDs from TryGetSnapshot clones
1 parent 8bfba08 commit 632cbf7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Messages/ISnapshotHolder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public bool TryGetSnapshot(SecurityId securityId, out Level1ChangeMessage snapsh
5454
return false;
5555

5656
snapshot = s.TypedClone();
57+
snapshot.OriginalTransactionId = 0;
58+
snapshot.SubscriptionId = 0;
59+
snapshot.SubscriptionIds = [];
5760
return true;
5861
}
5962
}
@@ -167,6 +170,9 @@ public bool TryGetSnapshot(SecurityId securityId, out QuoteChangeMessage snapsho
167170
return false;
168171

169172
snapshot = s.Snapshot.TypedClone();
173+
snapshot.OriginalTransactionId = 0;
174+
snapshot.SubscriptionId = 0;
175+
snapshot.SubscriptionIds = [];
170176
return true;
171177
}
172178
}

0 commit comments

Comments
 (0)