forgot to reset timer on recv data

This commit is contained in:
Green Sky 2024-12-19 17:17:10 +01:00
parent f40907d42a
commit 7cd68845ca
No known key found for this signature in database

View File

@ -575,6 +575,7 @@ bool NGCFT1::onEvent(const Events::NGCEXT_ft1_data& e) {
} }
auto& transfer = peer.recv_transfers[e.transfer_id].value(); auto& transfer = peer.recv_transfers[e.transfer_id].value();
transfer.timer = 0.f;
// do reassembly, ignore dups // do reassembly, ignore dups
transfer.rsb.add(e.sequence_id, std::vector<uint8_t>(e.data)); // TODO: ugly explicit copy for what should just be a move transfer.rsb.add(e.sequence_id, std::vector<uint8_t>(e.data)); // TODO: ugly explicit copy for what should just be a move