aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/protocols/prod_protocol_rtc.cc
diff options
context:
space:
mode:
authorMichele Papalini <micpapal@cisco.com>2022-09-29 13:53:38 +0000
committerGerrit Code Review <gerrit@fd.io>2022-09-29 13:53:38 +0000
commit29647f687c8dadc90e2ba4d3a772eee09a1a4f1b (patch)
tree82e321ccbe834e0c0d5faa3c175e10f93ccacbff /libtransport/src/protocols/prod_protocol_rtc.cc
parentd0c49cbf2887412e3b661d84032077db35c6d236 (diff)
parent7fd052761d21bfa38839a27cc9d03ef77a01f411 (diff)
Merge "fix(rtc-production-protocol): do not modify packet just after sending it"
Diffstat (limited to 'libtransport/src/protocols/prod_protocol_rtc.cc')
-rw-r--r--libtransport/src/protocols/prod_protocol_rtc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/src/protocols/prod_protocol_rtc.cc b/libtransport/src/protocols/prod_protocol_rtc.cc
index 3d1562801..aebad23d6 100644
--- a/libtransport/src/protocols/prod_protocol_rtc.cc
+++ b/libtransport/src/protocols/prod_protocol_rtc.cc
@@ -699,8 +699,6 @@ void RTCProductionProtocol::sendContentObject(
signer_->signPacket(content_object.get());
}
- portal_->sendContentObject(*content_object);
-
// Compute and save data packet digest
if (manifest_max_capacity_ && !is_ah) {
auth::CryptoHashType hash_algo;
@@ -709,6 +707,8 @@ void RTCProductionProtocol::sendContentObject(
manifest_entries_.push({content_object->getName().getSuffix(),
content_object->computeDigest(hash_algo)});
}
+
+ portal_->sendContentObject(*content_object);
}
void RTCProductionProtocol::onFecPackets(fec::BufferArray &packets) {