rlc_stress_test: fix bug when read_pdu was returning -1

master
Andre Puschmann 3 years ago
parent c0be8187c8
commit a013a2fe05

@ -197,8 +197,7 @@ private:
// Request data to transmit
uint32_t buf_state = tx_rlc->get_buffer_state(lcid);
if (buf_state > 0) {
int read = tx_rlc->read_pdu(lcid, pdu->msg, opp_size);
pdu->N_bytes = read;
pdu->N_bytes = tx_rlc->read_pdu(lcid, pdu->msg, opp_size);
// Push PDU in the list
pdu_list.push_back(std::move(pdu));

Loading…
Cancel
Save