diff options
author | 2022-09-29 13:53:38 +0000 | |
---|---|---|
committer | 2022-09-29 13:53:38 +0000 | |
commit | 29647f687c8dadc90e2ba4d3a772eee09a1a4f1b (patch) | |
tree | 82e321ccbe834e0c0d5faa3c175e10f93ccacbff /libtransport/src/protocols | |
parent | d0c49cbf2887412e3b661d84032077db35c6d236 (diff) | |
parent | 7fd052761d21bfa38839a27cc9d03ef77a01f411 (diff) |
Merge "fix(rtc-production-protocol): do not modify packet just after sending it"
Diffstat (limited to 'libtransport/src/protocols')
-rw-r--r-- | libtransport/src/protocols/prod_protocol_rtc.cc | 4 |
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) { |